0
I have a problem help plz
x=int(input()) print ("x="+(x)) Error x=int(input()) print ("x="x) Again error
3 odpowiedzi
+ 7
Read the error:
"TypeError: Can only concatenate str to str."
Your x is int, so before you concatenate, you should convert it to str.
x=int(input())
print ("x="+str(x))
+ 7
Use a comma ',' instead of +.