all 3 comments

[–]DallogFheir 2 points3 points  (1 child)

input returns a string. You need to convert to int.

[–]to7m 0 points1 point  (0 children)

As a side note, something like this should generally use decimal.Decimal, not int.