Editing Python data types cheat sheet
From CommunityData
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 16: | Line 16: | ||
2.0 | 2.0 | ||
>>> 1 / 2 | >>> 1 / 2 | ||
0. | 0.05 | ||
Division always produces a float (i.e., a number that knows about the decimal place). | Division always produces a float (i.e., a number that knows about the decimal place). | ||
Line 261: | Line 261: | ||
>>> type(my_dict) | >>> type(my_dict) | ||
<type 'dict'> | <type 'dict'> | ||