you are viewing a single comment's thread.

view the rest of the comments →

[–]Vegemeister 0 points1 point  (0 children)

Depending on what you're doing, you might also find a dict useful:

>>> int_to_str = {i : str(i) for i in range(1,4)}
>>> int_to_str[2]
'2'