Well, let's just say of the newbies in programming and codecademy, i am newest. Almost completely clueless. I have come here knowing i'd learn and find answers. By the way, i'm Nigerian and hold a first degree in electronics engineering. There is a test on Python programming which i must take before January 15 next year, in preparation for which i took up the codecademy Python training. Now i can't get past an exercise where i'm meant to create two functions in the same code, call and return. Some help, please.
You see, there is an organisation over here with this tech revolution thingy; and the test is part of a process to select worthy fellows to join the vanguard team. Now you understand why i came running! Here are the instructions and my wrong code:
First, def a function called cube that takes an argument called number. Don't forget the parentheses and the colon!
Make that function return the cube of that number (i.e. that number multiplied by itself and multiplied by itself once again).
Define a second function called by_three that takes an argument called number.
if that number is divisible by 3, by_three should call cube(number) and return its result. Otherwise, by_three should return False.
Don't forget that if and else statements need a : at the end of that line!
if number % 3 == 0: