+ 1
you are probably doing this: if stuff 1: do operation 1 elif stuff 2: do operation 2 if you type elif under an if statement it is going to execute only is the expression next to the elif is true and the expression next to the if statement is false. Read it like this for simplicity: if stuff 1 is true then do operation 1, but if it's false check the next elif statement and do operation 2 if stuff 2 is true. you can try this if you want python to check every if statement: if stuff1: do operation 1 if stuff2: do operation 2 etc...
14th Nov 2016, 10:09 AM
EagleEye
EagleEye - avatar