OUTPUT
money = input("Please enter your money")
choice = input("Would you like fruit or chocolate cost 10")
if choice == fruit:
if money >= 10:
print("Your fruit has been dispensed thank you")
money = noney - 10
else:
print ("You do not have enough money")
elif choice =="chocolate":
if money >= 10:
print("Your chocolate has been dispensed thank you")
money = money - 10
else:
print("You do not have enough money")
else:
primt ("That isn't a valid option")
#This code contains errors. Can you fix this Python code? Have a go!
Welcome to Python Online. Type in your Python code and click on the RUN button or use the following shortcuts: Chrome and Edge on Windows: Alt + R Firefox on Windows: Alt + Shift + R Firefox and Chrome on Mac: Control + Option + R Firefox and Chrome on Linux: Alt + Shift + R