Practice Makes Perfect for Python


#1


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


Oops, try again. Your code looks a bit off. Check the console window for errors!


def cube(number):
    number**3
        return number

def by_three(number):
    if number % 3 == 0:
        return cube(number)
        
    else:
        return False


#2

This looks a little bit off...


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.