+ 3
elif questions
Can someone please clearly explain what is elif questions(else if)?
1 Resposta
+ 3
Elif will not include the positive return of a previous If query, whereas a series of Ifs will include every positive return.
I have attached a little example which may explain easier than my written words.
In the code is two lines for the same query, 1 with a hash mark.
Run the code for the result, then relocate the hash so you can run the code with the other query.
You will clearly see the difference between If and Elif
https://code.sololearn.com/cst0Z4h27xxV/?ref=app