This commit is contained in:
Rsclub22 2022-04-08 14:16:29 +02:00
parent 56fe3621c2
commit c428658174

View File

@ -137,7 +137,7 @@ def payment(sum_of_price):
money_in_machine=input("Bitte Geld eingeben: ")
# Check if the money is a number
try:
money_in_machine=int(money_in_machine)
money_in_machine=float(money_in_machine)
except ValueError:
print("Bitte geben Sie eine Nummer ein")
return