Shopping at the Market, What am I doing wrong?


#1



... -- What am I doing wrong?? I'm STUCK. Please Help me --


I'm stuck on exercise 10. Shopping at the Market

Oops, try again. It looks like groceries is not a list.

File "python", line 1
list[groceries]:
__________^
SyntaxError: invalid syntax


list[groceries]:
groceries = {
    "banana",
    "orange",
    "apple"
}


#2

Help Me.... Okay? 'Kay!!


#3

Here is a link to my code...


#4

What?? why can't i link my code??


#5

Logging off for now...


#6

We cannot link to our own workspace, only the exercise itself. We all see our own workspace at that link. For help with your code, please paste it directly in your post.

Please visit this topic for help with formatting:

https://discuss.codecademy.com/t/how-do-i-format-code-in-my-posts/51139

We should avoid the use of reserved words (names of built-in functions). list() is a built-in function for converting a string to a list.

groceries is supposed to a list,

['apple', 'banana', 'orange']

or something to this effect. Check the instructions, or perhaps the list is already provided? If not, then change your dictionary to a list, like the above.


#7

Oh, sorry i didn't know :frowning:


#8

???

list(groceries):
    ["banana",
    "orange",
    "apple"]
}

#9

I did it :sunny: - Th3b33


#12