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 + ". ")
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 + ". ")
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