Practice makes perfect


#1

I get an error message every time i try ti save and submit my code,

My error message is "cube(1) resulted in an error: 'function' object has no attribute 'number'"
please help i don't really know what's wrong with it

def cube(number):
   if cube == cube.number(number): 
    return cube**3
    
def by_three(n):
    if by_three/3:
        return cube
    else:
        return False

#2

i recommend you to revisit the exercise which explains function parameters, you seem to struggle big time with this concept


#3

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