Short-circuiting with helper function in print()
Can someone please explain why the following code comes out as "geeks" in the console? def check(): return "geeks" print(0 or check() or 1) I’m assuming that Python recognizes the boolean operator, thus treating 0 == False? So does that mean every time boolean operators are used, the arguments are treated as True/False values? >Solution… Read More Short-circuiting with helper function in print()