Skip to content

Commit 9fa4b4b

Browse files
commit till ninth.py
1 parent 1aeedb4 commit 9fa4b4b

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

eight.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
rooms = ["room1","room2","washroom","room4"]
2+
roomnames = {"room1":"drawingroom","room2":"kitchen","room3":"bedroom","room4":"gamingroom"}
3+
value = "washroom"
4+
for room in rooms:
5+
if room == value:
6+
print("ma clean nahi karo ga ganda ha ya")
7+
continue
8+
else:
9+
print("cleaned " + room)
10+
print("end of loop")

ninth.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
num = 0
2+
password = "akhacker"
3+
while True:
4+
print("loop executing")
5+
given_pass = input("password> ")
6+
if given_pass == password:
7+
print("right password")
8+
break
9+
else:
10+
pass

0 commit comments

Comments
 (0)