2. Over Budget

Hi

May i know why i can’t print this one ??

Thanks,

Jinny

Hi Jinny,
The error tells you the problem lies in line 3:

image

You need to indent it so that it is contained within the function and should be aligned with the “if” statement in line 4. :slightly_smiling_face:


def over_budget(...):
    4cat = ...
    if budget < 4cat:
        ...

I don’t think you can have a variable that starts with number “4cat”

3 Likes

Thank you so much !!

but i am still have an error

As mentioned in my earlier reply (at the bottom), you can’t have variable that starts with number.

1 Like

ha thank you !! i didn’t see the last sentence