+ 1

Python - What's wrong with the is_Empty return or my mind? Why does it not return True or False?

Queue Solution - is_Empty method https://code.sololearn.com/cf06WPszyZBV/?ref=app

11th Aug 2022, 7:33 PM
Didi
Didi - avatar
3 Answers
+ 2
'is_empty' , 'next' are function names which returns addresses. is_empty() , next() are function calling statements which returns result of function execution.
11th Aug 2022, 7:47 PM
Jayakrishna šŸ‡®šŸ‡³
+ 1
Wow, thanks for making that clear. I guess better programmers can utilize addresses?
11th Aug 2022, 7:54 PM
Didi
Didi - avatar
0
You can make alias names.. You're welcome..
11th Aug 2022, 7:58 PM
Jayakrishna šŸ‡®šŸ‡³