может только объединить str (не "int") в str
# To solve the issue, just add str to your number or value like:
print( "Alireza" + str(1980))
UnAngeloCheSiChiamaTheKing
# To solve the issue, just add str to your number or value like:
print( "Alireza" + str(1980))
So for example the code below throw an error:
print( "String" + 1234)
like this:
Traceback (most recent call last):
File "<pyshell#12>", line 1, in <module>
print( "String" + 1234)
TypeError: can only concatenate str (not "int") to str
To solve the issue, just add str to your number or value like:
print( "String" + str(1234))
And the result as:
String1234