jeudi 2 janvier 2020

May I know how to deal with if not p, if p kind of if-elif-else question?

The question is as follows:

def p():
    return lambda: print("Confused?")
if not p:
    p()
elif p:
    p()()
else:
    print(not p()())

I dont understand how to get Confused? as the answer

Aucun commentaire:

Enregistrer un commentaire