+ 2

[Phyton]Help with inputs and if statements

I'm starting with phyton. Someone can help with a simple code. They don't work in anyway I try. https://code.sololearn.com/c2NbfK033wtP/?ref=app

1st Feb 2018, 9:17 PM
Vinicius Rocha Perrud
Vinicius Rocha Perrud - avatar
1 Answer
+ 4
You need to have "operation" in the first line because you are choosing it first and then num1 num2 input () is used for strings, you need to change to int(input()) for each variables because int for numbers.
1st Feb 2018, 9:29 PM
Ferhat Sevim
Ferhat Sevim - avatar