1# Use the function str() to turn an integer into a string
2integer = 123
3string = str(integer)
4string
5# Output:
6# '123'
1# Define a variable containing an integer first
2number = 7
3# Next, we would have to convert it to a string. But, since the str() method
4# would make our variable's integer a string for a temporary period,
5# we would have to REdefine the entire variable as a string:
6number = str(number)
7# To prove my method, I will use the type() function to show you that
8# the variable had change permanently:
9print(type(number))
10>>output: <class 'str'>