feat: Initial commit
This commit is contained in:
17
Laboratorio5/pin.py
Normal file
17
Laboratorio5/pin.py
Normal file
@@ -0,0 +1,17 @@
|
||||
def main():
|
||||
pin = "1234"
|
||||
errCount = 0
|
||||
|
||||
while errCount < 3:
|
||||
uinput = input("Insert pin: ")
|
||||
|
||||
if uinput == pin:
|
||||
print("Your PIN is correct")
|
||||
return
|
||||
|
||||
print("Your PIN is incorrect")
|
||||
errCount += 1
|
||||
|
||||
print("You bank card is blocked")
|
||||
|
||||
main()
|
||||
Reference in New Issue
Block a user