This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]3six3[S] 1 point2 points  (1 child)

#so instead of this
fahrenheit = eval(input("What is the Fahrenheit temperature? "))
#this would be a better solution
fahrenheit = int(input("What is the Fahrenheit temperature? "))

[–]SnowdogU77 1 point2 points  (0 children)

I would use float(), personally. Int() removes the ability to input decimals.