0

why isnt the last line getting printed in this code??

https://code.sololearn.com/cP2LFqaK1bPd/?ref=app

12th Dec 2019, 1:51 AM
PRO
PRO - avatar
6 Antworten
+ 2
The if part is true, so the elif parts are completely ignored. If you want those to be evaluated independently, replace the elif by if.
12th Dec 2019, 2:28 AM
Kishalaya Saha
Kishalaya Saha - avatar
+ 2
13th Dec 2019, 5:50 PM
PRO
PRO - avatar
+ 1
but i had used not in operator with one plus 8...so dont u think the statement should be evaluated as true and last statement should be printed
12th Dec 2019, 2:03 AM
PRO
PRO - avatar
0
You're very welcome, Pro! 😊
14th Dec 2019, 2:04 AM
Kishalaya Saha
Kishalaya Saha - avatar