pin1 = int(input("Please set a pin: "))
print("Welcome to Satan's Soul Bank, Enter ya pin!")
attempt = int(input("Please enter your pin number first"))
if attempt == pin1:
print("Select operation.")
print("1.Deposit Souls")
print("2.Withdraw Souls")
print("3.Check Soul balance")
choice = int(input("Enter choice(1/2/3):"))
elif attempt != pin1:
for i in range(2):
attempt = int(input("Invalid Attempt Please enter your pin
number again"))
else:
print ("Card Swallowed Contact SATAN")
The code itself works apart from the print statement after the else: it seems to not recognize it and just misses it, basically I need it to print that the card has been swallowed after 3 times however when i put it into the elif area it just prints it each time I get the pin wrong so is there any other way to get around that resulting in it printing that the card has been swallowed after the 3rd time