1# Use the function str() to turn an integer into a string
2integer = 123
3string = str(integer)
4string
5# Output:
6# '123'
1# Convert integer to string in Python using f-string method
2
3num = 10
4print('type(num): ',type(num))
5
6num_str = f'{num}'
7
8print('type(num_str): ', type(num_str))
1# Convert integer to string using %s keyword
2
3num = 10
4print('type(num): ',type(num))
5
6num_str = '%s' %num
7
8print('type(num_str): ', type(num_str))