Functions PLEASE HELP


#1



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


it says:

"if that number is divisible by 3, by_three should call cube(number) and return its result. Otherwise, by_three should return False." I don't know how to return its result


def cube(number):
    return cube

def by_three(number):
    
    if number/3:  
        #this is the place I need help on returning the result
        
    
    else: 
        return False


#2

You're very close; however, it is the remainder we need to test, not the quotient.

if number % 3 == 0:

#3

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