I am trying to get back into coding with python since I have a basic cert in it. I figured I would try doing a simple ATM machine to start. However once I set my code up and try running it it doesn't print out the balance even though the balance variable is assigned a value. Can someone please guide me in what I am doing wrong with my code.
balance = 2000
withdraw = 0
deposit = 0
print("Welcome to the Heart Cold ATM")
print("Select 1 to View Currrent Balance")
print("Select 2 for Depsoit")
print("Select 3 for Withdraw")
print("Select 4 to Quit")
userInput = input("Please put the option that you want execute: ")
if userInput == 1:
print("Your current balance is " + balance)
elif userInput == 2:
depsoit = input("Enter the amount you would like to deposit: ")
balance += deposit
print(balance)
elif userInput == 3:
withdraw = input("How much would you like to withdraw: ")
balance -= withdraw
if withdraw > balance:
print("Insufficient fund unavilable to withdraw from your account. Please re-enter a different amount")
print(balance)
else:
ExitNow