-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathclass15.py
More file actions
72 lines (48 loc) · 1.07 KB
/
Copy pathclass15.py
File metadata and controls
72 lines (48 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# def myfunc(num):
# for i in range(num):
# print("Good Morning") # 20
# a=[2,3,4]
# for i in range(3):
# a[i] = a[i]**2
# print(a)
# myfunc(20)
# print("Good Noon")
# print("Good Afternoon")
# print("Good Night")
# myfunc(200)
# Don't Repeat Yourself ==> DRY
# def Greetings(): # Argument
# print("Good morning")
# Greetings()
# def Greetings(name): # Argument
# print("Good morning,",name,"!!!")
# y = "Nasim"
# Greetings(y)
# def Greetings(name): # Argument
# if name%2 == 0:
# print("Even")
# else:
# print('Odd')
# y = 110
# Greetings(y)
# def Greetings(name): # Argument
# if name%2 == 0:
# return 0
# print("Done")
# else:
# return 1
# y = 110
# result = 0
# if result == 0:
# result = result + 10
# else:
# pass
# def Greetings(mytup): # Argument
# print(mytup[0],"is",mytup[1],"years Old.")
# y = ("Nasim",110)
# Greetings(y)
# def myFun(number):
# for i in range(number):
# if i%2 == 0:
# print(i)
# myFun(5)