PLEASE CORRECT CODE SO THAT DESERVES_ANOTHER(0) RETURNS 3;
n= z+ 2
EXERCISE: FUNCTIONS CALLING FUNCTIONS
What lesson is that? Which module does it belong to?
Also post what you ask in the lesson so that I can understand you better.
it belongs to functions
Your code should be in that order.
def one_good_turn(n): return def deserves_another(n): return
Obs: That's the order of my code only, no answer, of course!
but the code must return 4
Yes ... I did not say the return is zero and yes, that is the basis of the code for you to assemble your answer.
Given the basis of how you should assemble your code:
The first return must add the argument plus 1, that is, "n + 1" (without quotes!), And consequently, the second return must add the plus 3 argument.
I hope I was helpfull.
thanks pal i solved it
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.