python \ as string code example Example 1: make int into string python number = 12 string_number = str(number) Example 2: to string python x = 2.718 strX = str(x)