0

solve this and what is the error '"""""""""""""y=2\n x=input("enter")\n print(x+y)"""""""""""

y=2 x=input("enter") print(x+y)

23rd Mar 2017, 4:56 PM
Divy Kairoth
Divy Kairoth - avatar
3 Answers
+ 1
input takes in a string. your trying to add a string to an int. cast it as an integer y=2 x=int(input("")) print(y+x)
23rd Mar 2017, 5:02 PM
LordHill
LordHill - avatar
0
thanks
24th Mar 2017, 7:57 AM
Divy Kairoth
Divy Kairoth - avatar
0
no problem
24th Mar 2017, 7:58 AM
LordHill
LordHill - avatar