+ 1
Why it doesnât work???
2 Answers
+ 2
Just a couple of issues:
First, as the Sololearn playground will only run through your code once (not including loops), it will only call for input once throughout the duration of the code actually running. Because of this, you cannot call for input within a conditional block based on other input, as that would require more than one time for input to be called. You can avoid this issue by calling all your input at the beginning outside of any conditional blocks, and check for their values later.
The second issue is that your indentation is a little wonky, and is confusing the program a little. For code blocks, you would need to include an indentation (often 4 spaces) for any statements to be resolved within an if/while/for/etc. block.
+ 2
Kovb Savva always use right indentation and for divide use / not \.
check it.
https://code.sololearn.com/c6SZqhVpcIRG/?ref=app