Why might my else statement in an if,elif, and else statement in python not work?
- husoskiLv 76 months agoFavorite Answer
Lots of possibilities here: wrong conditions, missing colon, wrong indentation, wrong statement order, unclosed parenthesis/bracket/brace/triple-quote on a previous line, and probably some other things.
- ChrisLv 76 months ago
Are we supposed to guess randomly?
Or could you maybe, just maybe, add your goddamn code to the question?
- A Yahoo UserLv 76 months ago
most common - improper "grammar", you've got something missing or an extra parenthesis or what-have-you
often - improper logic or a typo (for example of the latter: letter O where there should be the number 0)
- Barkley HoundLv 76 months ago
Most of the time it is the combination of "and" and "or" statements. Programming must be exact.