Printing Integrers
IzanLarumbe (33)

How can i print integers??

You are viewing a single comment. View All
ash15khng (684)

The reason why the code isn't working is because you're trying to add a string and an integer, which just doesn't work. You have to convert the integer into a string by using str() then you can use the + symbol to concatenate them.
For example:

# Next line will give an error
print("Hello" + 123)
# To fix this, convert the integer to a string:
print("Hello" + str(123))

Also side note, you should post your repl link instead of just a screenshot.