Its because every elif needs to be paired with an if. You can’t have an elif
statement separated from its if
.
To fix this, reorganize your code and make sure the elif
directly follows the if
.
4
solved Syntax error, no apparent cause, how come? (Python 3) [closed]