python define integer as string data code example Example: python integer to string num = 12 print(f"Bob has {num} apples.") #prints: Bob has 12 apples.