0

Here my code

x=input() y=input() x=6 y=3 z=x+y print(z)

21st Nov 2021, 1:57 AM
Dennis Onoja
3 Respostas
+ 2
Dennis Onoja Yes there is a problem in your code. You have to remove Hard Code value and use input variables to get sum. Here you can learn how to take numeric input and do such a operation like addition, subtraction etc. https://www.sololearn.com/post/1159836/?ref=app
21st Nov 2021, 2:10 AM
A͢J
A͢J - avatar
+ 1
Python input is accepted as a string. You have to use the int method with your input.
21st Nov 2021, 2:08 AM
William Owens
William Owens - avatar
0
It showing that I have a bug
21st Nov 2021, 2:06 AM
Dennis Onoja