Practice Makes Perfect for Python


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

def cube(number):
        return number

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


This looks a little bit off...


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