0

I have a problem help plz

x=int(input()) print ("x="+(x)) Error x=int(input()) print ("x="x) Again error

3rd Feb 2020, 8:47 AM
potato2236
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))
3rd Feb 2020, 8:55 AM
voja
voja - avatar
+ 7
Use a comma ',' instead of +.
3rd Feb 2020, 8:49 AM
Avinesh
Avinesh - avatar