float
This commit is contained in:
parent
56fe3621c2
commit
c428658174
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user