Convert integer to string in Python

Problem description

How to convert an integer to a string in Python?

Problem solution

You can use str() Python's built-in function:

str(99) # it returns "99" 

Other way to do that is using str() method on the object. Example:

my_int = 99
my_int.__str__() # it also returns "99"