Why might my else statement in an if,elif, and else statement in python not work?
- husoskiLv 75 months agoBest 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 75 months ago
Are we supposed to guess randomly?
Or could you maybe, just maybe, add your goddamn code to the question?
- A Yahoo UserLv 75 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 75 months ago
Most of the time it is the combination of "and" and "or" statements. Programming must be exact.