Skip to content

Commit 9c1eae1

Browse files
committed
basic changes only
1 parent 115cfdf commit 9c1eae1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

chapter_03/summary.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
# if statement
1+
print('\n______if statement______\n')
22
name = "khan"
33
if name == "Akash" or name == "akash":
44
print("You are Akash")
55
elif name == "khan" or name == "Khan":
66
print("Your are khan")
77
else:
88
print("You are not Akash or Khan")
9-
10-
# While loop
9+
# ====================================
10+
print('\n______While loop______\n')
1111
i = 1
1212
while i <= 10:
13-
print(f"{i} Khan")
13+
print(f"{i} {name}")
1414
i += 1
15+
# ====================================
16+
print('\n______for loop______\n')

0 commit comments

Comments
 (0)