while true: print ('what name') name = input() if name == 'joe': continue else: break print ('what password') password = input() if password == '123': break print ('permission granted') whenever type other joe brings me last line.i new programming appreciated.
if understand correctly it's code logic wrong. try:
while true: print ('what name') name = input() if name != 'joe': continue print ('what password') password = input() if password == '123': break print ('permission granted')
Comments
Post a Comment