In Codecademy Functions Challenge there is a simple question that asks to print 3 multiples and return the last multiple. But when I do the return part on other functions with an equation, I get an answer. But not with this specific question.
def first_three_multiples(num):
print(num)
print(num * 2)
print(3 * num)
return print( num * 3 ) <<<----
^^^ This works.
def first_three_multiples(num):
print(num)
print(num * 2)
print(3 * num)
return num * 3 <<<-----
^^^ This doesn't work.
I get the 3 print statements but NOT the return.
On every other return statement I've done so far, I have always used an equation in the return line.
I've even done the equation on the return line in the next few questions on the challenge with no issues.
But there are no print statements either.
Can anyone explain to me why along the return line I get an answer for one but not the other?