0

[SOLVED] Why is the is_empty function doesn't return a value??

https://code.sololearn.com/cLtOMie7Hv2z/?ref=app I want to know why is the is_empty function doesn't return any value??

31st Jan 2021, 10:34 AM
K.S.S. Karunarathne
K.S.S. Karunarathne - avatar
2 Answers
+ 6
It is returning a Boolean value. The problem is that you are not doing anythin with it, that's why you are not able to see it's effect. Check this out 👇( I am printing the return value to console) https://code.sololearn.com/cOOwG62si9R6/?ref=app
31st Jan 2021, 10:43 AM
Arsenic
Arsenic - avatar
+ 2
Thanks
31st Jan 2021, 10:44 AM
K.S.S. Karunarathne
K.S.S. Karunarathne - avatar