python-CSD-kursu/break.example.4.py

10 lines
192 B
Python
Raw Normal View History

2023-05-21 09:03:31 +03:00
for i in range(3):
s = input('Enter password:')
if s == 'maviay':
print('Ok')
break
else:
print('Invalid password')
else:
print('Your account blocked')