How can I concatenate a string and a number in Python? [duplicate]

Python is strongly typed. There are no implicit type conversions.

You have to do one of these:

"asd%d" % 9
"asd" + str(9)

Leave a Comment