Section 6 of functions


#1

https://www.codecademy.com/en/courses/python-beginner-c7VZg/1/5?curriculum_id=4f89dab3d788890003000096

File "python", line 5
return cube(number)
^
IndentationError: expected an indented block

I am trying to call the functions as specified on the exercise.

def cube(number):
    return "%s*%s*%s" % (number, number, number)
def by_three(number):
    if number % 3 == 0:
    return cube(number)
    else:
        return "False"
cube(3)

#2

Line 5 (return cube(number)) should be indented like line 7 (return "False").

Also, in this exercise you should return number (int) or boolean type (True or False), not a string.
So a cube(3) shouldn't return "3*3*3" but 27, by_three(5) should return False, not "False".


#3

Thank you very much for the help.