I have been trying to code this ATM for an intro to coding class at uni, there are no syntax errors however the code stops running after the first line. Not sure where to go from here:
def cashpoint(truepin, balance):
pin_attempt = input('Please enter your PIN: ')
if input == truepin:
return "Pin correct, please choose one of the following options"
return '1: balance'
return '2: cash and balance'
return '3: mobile top up '
option = input('option selected: ')
if option == 1:
return 'balance: ', balance
elif option == 2:
return 'balance: ', balance
withdrawal = input('please enter the amount you wish to withdraw: ')
elif option == 3:
input('please input the amount you wish to deposit into your account: ')
else:
return 'incorrect, please select one of the available options'
else:
return 'pin incorrect, please try again '
cashpoint(1234, 2350.25)
Any help would be appreciated. This is mostly for revision so please tell me where I've gone wrong and don't hold back!