First, def a function called cube that takes an argument called number. Don't forget the parentheses and the colon!
Both branches of the if/else statement in by_three need to have return statements in them (that's three returns total, two for by_three and one for cube).