In this below code i can't understand that how does it work ? like below happy,sad are doesn't define and what speak does in return line or print line........ if your help to get out from this code it will be great support for me.
def speak(message): return message if happy(): speak("I'm happy!") elif sad(): speak("I'm sad.") else: speak("I don't know what I'm feeling.")