Advertisement
PawsonCz

while with else

Aug 12th, 2020
2,557
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. secretPin = '0044'
  2. yourPin = input('Enter the secret PIN ')
  3. while yourPin == secretPin:
  4.     print('Enter in')
  5.     break
  6. else:
  7.     print('Try again')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement