TypeError: can only concatenate str (not "int") to str
print( "Alireza" + str(1980))
TypeError: can only concatenate str (not "int") to str
print( "Alireza" + str(1980))
TypeError: can only concatenate str (not "method") to str
You need to call it using () to get a string in return
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))
TypeError: can only concatenate str (not "int") to str
# Instead of using " + " operator
print( "Alireza" + 1980)
# Use comma " , " operator
print( "Alireza" , 1980)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us