-1

im getting this for some reason. Im trying to enter the integer 69 instead of "69" heres the code.

number = 69
print("the number im trying to type is" + number + ". ")
Aran-Fey
  • 39,665
  • 11
  • 104
  • 149

1 Answers1

1

So make it a string:

number = '69'
number = str(69)

or use the format string:

number = 69
print("the number is {0}".format(number)) # the number is 69

You could also format it in this case, e.g.:

number = 69
print("the number is {0:04d}".format(number)) # the number is 0069
Nico W.
  • 338
  • 3
  • 12