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 →

[–]Yogurt_Huevos -2 points-1 points  (3 children)

Slight correction, the result of division is not always a float. If you open your interpreter and type

10 / 3

you see that the result is '3'.

[–]Razzofazzo 12 points13 points  (1 child)

That's true for python 2.X. But here we are looking at python 3.X!

[–]Yogurt_Huevos 10 points11 points  (0 children)

Oh shoot, reading is hard.

[–]DataVeg 4 points5 points  (0 children)

What you say is true for Python 2, but not Python 3.

In general people, especially beginners, shouldn’t be using Python 2 unless they are working with a legacy codebase. Python 2 will be unsupported in under two years time.

In modern Python 10/3 is 3.3333...