Skip to content

Commit f5b9a09

Browse files
Create pg.75.whiletrue.continue.break.py
0 parents  commit f5b9a09

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pg.75.whiletrue.continue.break.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
while True:
2+
print('Who are you?')
3+
name = input()
4+
if name != 'Joe':
5+
continue
6+
print('Hello, Joe. What is the password? (It is a fish.)')
7+
password = input()
8+
if password == 'swordfish':
9+
break
10+
print('Access granted.')

0 commit comments

Comments
 (0)