Depending on the version of Python you are using, this may or may not return a string
hours = input("How many hours did they work?: ")
If it is a string and not a float
print type(hours),
the function should
return float(hours)
Hopefully, it is obvious why you want to do this.
sneekula commented: very good point +6
GrimJack commented: Good call! I agree +9
Ene Uran commented: good point +6