0

Need to why i am getting this error

a=int(input("enter value")) b=int(input("enter another")) print(a+b) This is my code and i am getting ValueError in it

18th Jul 2020, 3:10 AM
Anup Shinde
Anup Shinde - avatar
3 Respuestas
+ 5
Can you share your code on sololearn. It will help me to edit and solve
18th Jul 2020, 3:15 AM
ツSampriya😘ツ
ツSampriya😘ツ - avatar
+ 3
1. Make sure you're entering 2 integer types 2. In the SL Playground you have to enter both numbers and then click submit. Like, 4 6 I'm not showing any error when values are entered properly.
18th Jul 2020, 3:22 AM
ChaoticDawg
ChaoticDawg - avatar
+ 1
I think you are entering values 'a' and 'b' on the same line when trying to run your code. Try: Value 'a' Enter Value 'b' Submit
18th Jul 2020, 3:24 AM
Rik Wittkopp
Rik Wittkopp - avatar