Answers for "can only concatenate str (not is ) to str"

9

can only concatenate str (not "int") to str

# To solve the issue, just add str to your number or value like:

print( "Alireza" + str(1980))
Posted by: Guest on October-29-2020
0

TypeError: can only concatenate str (not "method") to str

You need to call it using () to get a string in return
Posted by: Guest on March-14-2020

Python Answers by Framework

Browse Popular Code Answers by Language