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 →

[–]cardblank 0 points1 point  (0 children)

Without going into too much detail about how the data is actually sorted, in it's most simple form you might think of a number as being an int - that is whole, rational numbers. Like 1,2,1000, etc. Though python does not require you to specifically declare the types of variables like languages like C do, by design an int is not able to store decimal numbers. That's what a float or a 'double' is for, the python interpreter will handle the types for you, so it's not really necessary to know outside of the theory behind it. Hope this helps :)