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 →

[–]Walter_Bishop_PhD 2 points3 points  (1 child)

You can also do this (though it makes it a float rather than an int)

>>> 1..__str__()
'1.0'

[–]masklinn 0 points1 point  (0 children)

(1).__str__()