Skip to content

Commit 4aaf3d1

Browse files
committed
Update
1 parent 7836da3 commit 4aaf3d1

File tree

6 files changed

+45
-0
lines changed

6 files changed

+45
-0
lines changed

Diff for: β€ŽConversions.py

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
a=4.5
2+
print(int(a))
3+
b=7
4+
print(float(b))
5+
print(complex(a))
6+
7+
a=10
8+
b=20
9+
print(a+b)
10+
print(a/b)
11+
print(float(a)//float(b)) # for float
12+
print(b-a)
13+
print(a%10)
14+
15+
a='5'
16+
print(int(a)) # Integer value
17+
print(ord(a)) # ASCII value
18+
19+
20+
# iteration
21+
it=iter([1,2,3])
22+
next(it)
23+
next(it)
24+
print(next(it))
25+
# next(iter) stop interation error
26+
# print("a"+8) concat error
27+
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: β€ŽREADME.md

+18
Original file line numberDiff line numberDiff line change
@@ -1 +1,19 @@
11
# <-- My Repository for Learning Python Programming -->
2+
3+
Python is an Object Oriented Programming Language. An Open Source programming
4+
also an interpreted language. It is portable and easy to learn...!
5+
6+
Procedural Programming -> set of instructions that enhance the service.
7+
Object Orented -> Objects to instruct an machine.
8+
9+
MOTTO: What to do instead How to do
10+
11+
Few lines and execution is slower. Works on different platforms. Which can
12+
also be treated as procedural way with libraries.
13+
14+
IDE - Integrated Development Environment
15+
16+
Provides facilites to provide all the necessary development tools that a
17+
programmer needs in one place. Eg: VS or PyCham
18+
19+

0 commit comments

Comments
Β (0)