python string with integer variable code example Example 1: print string + int in python print('sum is : ' +str(25)) Example 2: python string to int print(int("12"))