python covert to str code example Example 1: how to convert to string in python str(integer_value) Example 2: to str python >>> str(10) '10' >>> int('10') 10