Can somebody help me with my code?


#1

I don't know why it says " File "python", line 2 Syntax Error: can't assign to function call "

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


#2
def cube(number):
     #cube(number) = number ** 3
     return number **3

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

print by_three(3)
print by_three(1)

#3

I got a problem, and don't know why.
My code is :
def cube(number):
return number**3

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


#4


Indent the code