scripts/python/dev/codedex/loops.py
2025-04-14 09:22:15 +02:00

16 lines
353 B
Python

print('BANK OF DEDEDEX')
pin1 = int(input("Enter your first PIN: "))
pin2 = int(input("Enter your PIN again, to confirm: "))
if pin1 == pin2:
password = pin1
pin = int(input('Enter your PIN: '))
while pin != password:
pin = int(input('Incorrect PIN. Enter your PIN again: '))
if pin == password:
print('PIN was entered successfully!')