Skip to content

Commit bba6bb4

Browse files
authored
Add files via upload
0 parents  commit bba6bb4

11 files changed

+96
-0
lines changed

Module 1/10.1 Variables.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
your_name="python"
2+
a=10
3+
b=2.0
4+
c=255
5+
print(your_name)
6+
print(a)
7+
print(b)
8+
print(c)
9+
a=10
10+
b=10
11+
c=10
12+
d=10
13+
a=b=c=d=10
14+
a,b,c,d=10,2.2,255,'python'
15+
print(a,b,c,d)
16+

Module 1/12.1 Variables.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
your_name="python"
2+
a=10
3+
b=2.0
4+
c=255
5+
print(your_name)
6+
print(a)
7+
print(b)
8+
print(c)
9+
a=10
10+
b=10
11+
c=10
12+
d=10
13+
a=b=c=d=10
14+
a,b,c,d=10,2.2,255,'python'
15+
print(a,b,c,d)
16+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
a=10
2+
print(10)
3+
a=10.2
4+
print(a)
5+
a="pyhton"
6+
print(a)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
a=10
2+
print(10)
3+
a=10.2
4+
print(a)
5+
a="pyhton"
6+
print(a)

Module 1/14.1 Swap Variables.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
a=10
2+
b=20
3+
print(a,b)
4+
a,b=b,a
5+
print("this is the value of a",a)
6+
print("this is the value of b",b)

Module 1/16.1 vairable Scope.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
var1=20
2+
def abc():
3+
global var1
4+
var1=50
5+
6+
7+
abc()
8+
print(var1)

Module 1/16.2 vairable Scope.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
var1=20
2+
def abc():
3+
global var1
4+
var1=50
5+
6+
7+
abc()
8+
print(var1)

Module 1/20.1 Assert Statement.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
a=10
2+
assert a==10
3+
assert a==20

Module 1/21.1 string.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
your_name="This is the varaible of the string"
2+
print(your_name)
3+
your_name1="""This the Variable of
4+
Multiple type
5+
string"""
6+
print(your_name1)
7+
a="python"
8+
b="3"
9+
c=a+b
10+
print(c)
11+
d="this is python 3"
12+
print("this outPut %s"%d)

Module 1/24.1 len Function.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name="python"
2+
name1="this is python"
3+
tmp="{name} is creator of {name1}"
4+
t=tmp.format(name=name,name1=name1)
5+
length=len(name)
6+
lengthname=len(name1)
7+
lengtht=len(t)
8+
print(length)
9+
print(name1)
10+
print(lengtht)
11+
12+
string="name of program"
13+
print(len(string))

Module 1/7.1 Basic Syntax.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
print("hello\
2+
hi this is world")

0 commit comments

Comments
 (0)