import time
def pini():
pin1 = int(input("enter your pin please: ")
if pin1 == pin:
print("pin correct")
print("paying: £",amount)
print("opening connection...")
time.sleep(0.4)
print("contacting bank...")
time.sleep(1.0)
print("contacting bank...")
time.sleep(0.5)
print("contacting bank...")
time.sleep(0.2)
print("contacting bank...")
time.sleep(0.2)
print("transaction successful")
elif:
print("wrong pin, try again")
pini()
print("Welcome to the bank")
print("\n")
pin = int(input("what is your pin: ")
pay = ""
while pay == "":
pay = input("press 'n' to make a payement: ").lower()
if pay == "n":
amount = int(input("please enter amount to pay: ")
print("please insert your card to pay" , "£",amount)
print("\n")
pini()
That is my code.
When running, I get an 'invalid syntax' error, I'm using Python/IDLE 3.4.2. This is just a small program for a school project which I'm having an error with.
I think it may be indenting that is the issue but otherwise I'm not sure, any help appreciated :)