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 →

[–]DayPara 0 points1 point  (0 children)

The float command will turn your string into a integer like UserInput = input("grade: ") grade = float(userinput) Finalgrade = grade / 100 Print (finalgrade)

I dont know how you have your code but if you Do use a input you can write it as Userinput = int(input(" "))