+ 2
What's wrong With this code?
I tried running it on sololearn web version i keep getting some error messages. But it works well on Sololearn.apk and even on some Python IDLE on PC Here's the source code https://code.sololearn.com/cUMla93ry1n7/#py
1 Answer
+ 2
The problem is that because Python has no live console, you cannot test an input variable in an if statement and declare another input variable within that statement (because the variable needs to have been sent to declare the second variable).