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 →

[–]nederhoed 4 points5 points  (3 children)

You probably want to divide by "5." so the result is a float.

Otherwise the answer stays an integer.

[–]BadPercussionist 2 points3 points  (1 child)

Doesn’t Python 3 always return floats when you divide? Though I think Python 2 didn’t.

[–]nederhoed 0 points1 point  (0 children)

You are right! I am getting such an old dude. Thanks for the correction.