Python freeze without error by a simple program if you enter a number with a comma .
-Example for a number: 3.51
the task: Write a program that names an amount entered as the minimum number of coins making up this amount.
-Code made with Python 3.7.1:
print("please enter one euro amount!")
x=float(input())
a=[]
while x>0:
if x>=2:
a.append("2€")
x=x-2
elif x>=1:
a.append("1€")
x=x-1
elif x>=0.50:
a.append("50c")
x=x-0.50
elif x>=0.20:
a.append("20c")
x=x-0.20
elif x>=0.10:
a.append("10c")
x=x-0.10
elif x>=0.05:
a.append("5c")
x=x-0.05
elif x>=0.02:
a.append("2c")
x=x-0.02
elif x>=0.01:
a.append("1c")
x=x-0.01
print("You need at least",len(a),"coins:",a)
no result python freezed /: