I need help please!


It’s fine. Let’s see your well formatted code and error.


this is my code
def cube(number):
if cube == cube.upper():
return “The cube of that number!”
def by_three(number)
if by_three == number.upper():
return “False!”


If you had formatted it, that would have been lovely.

However, you had syntax issues and mixed-up the code.

You end a function with a colon. You didn’t do so here:

See below for re-written code.

def cube(number): #cube function with number parameter
    return number**3 #returns cube of number
def by_three(number):
    if number % 3 == 0:
        return cube(number)
        return False

Hope this helps! :slight_smile:


Thank you you are the best
teacher ! I hope i 'll be like you
:grin: :grin: :grin: :grin: :grin:



Have fun coding! Consistency and persistence should get you there. :slight_smile:


help me with this lesson


Haha… Someone has already helped out.

You need to add the item “cobra” at the index in your list duck_index. So you have it as:

animals.insert(duck_index, "cobra")


thanks but i found the solution by myself


Awesome. Sorry I came in late.

Keep on! :slight_smile:


but hhhhh can you help me with this :kissing: :kissing: :kissing: :kissing: :kissing:

this is my code

the lesson for one and all


From that I can see, the instruction says to do:

for number in my_list:
    print 2 * number

However, interpreting the error in error in the interpreter, your indentation of number variable is wrong.

When you add a colon, just hit the enter key on your keyboard and it will indent it rightly for you.



oh thanks where are you from sir


You’re welcome.

By nationality, I’m a Nigerian. A country in Western Africa.

Why do you think I’m a “sir”? :slight_smile:

[On this discuss alone, you’ve marked like 3 different changing solutions. :smile: No harm. Just thought to mention.]

Keep on coding! :slight_smile:


and i’m a tunisian pupil you know !!!


Awesome! :slight_smile:


i need help again ! hh


The value for the key "name" shouldn’t be in bracket.

You should have it like:

"name": "Lloyd"

Repeat for each dictionary.

See if this resolves. :slight_smile:


thank you very much !


You’re welcome.

Code on! :slight_smile:


please can you help me with this and i 'll be very glad!

help we with the function: