Replace this line with your code.
I do not know what I am doing wrong?
Remove the return statement on line 2. It is a mistake that has been making the rounds due to the instructions not being clearly understood.
Perfect it worked thanks.
One quick question Nothing can be placed under def or at least nay command correct?
the reason I ask because in the instructions it appears like this
In the example, the code below is not in the function, but makes conditional calls to the function. It assumes a variable
happy() and sade are already defined functions. One can see how a learner would be confused by this.
The execise code IS inside the function, so should not look like the example.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.