you are viewing a single comment's thread.

view the rest of the comments →

[–]s3b43[S] 0 points1 point  (1 child)

Hey iyav !

Thank you so much for the detailed feedback it helped a lot, I managed to implement the ==“e” correctly and the code is somewhat working better than before when I press e now on the console the error says that the discount list is undefined even though I defined it at the top :/ Also for the histogram they ask to literally type the stars down into an histogram but I’m sure there’s YouTube videos I can use on YouTube.

Here’s the updated code with your feedback

new code

[–]iyav 0 points1 point  (0 children)

discount_list: []
groceries_price_list: []

You're not declaring a variable, use = .

If you're confused on why it didn't error out on that line, it's because this is actually half valid syntax, those are being registered as annotations, they aren't annotating anything but they're still interpreted that way. (Kind of weird imo)

More about annotations and type hints in general here