0
How to concat string and numbers in Python (eg.In c++ >> cout>>"There are" + 3 + "Apples")
2 Answers
0
3 is a int type..
rest are string...
put 3 in quotes...
' 3 '
0
Sayan is correct, you could also cast the integer to a string.
print("I have " + str(3) + " apples")