#🔒 Help

15 messages · Page 1 of 1 (latest)

limber basin
#

Why isn’t the ratings correct? (Lmk if you need more context)

azure kernelBOT
#

@limber basin

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

halcyon raven
limber basin
halcyon raven
#

it looks like you're looping over it twice?

#

try removing the stuff after movie['rating']

limber basin
#

It responds Error: ‘rating’ not defined

inner mural
#

I assume from the photos that you can't copy/paste text from the computer you're running this on, into this discord?

limber basin
limber basin
inner mural
#

Right. But I'm pointing our that the loop variable is named movies but you're obtaining movie['rating']. I'd expect they need to match. otherwise you're trying to access some variable movie which (a) isn't set anywhere and (b) doesn't track the values from the loop.

azure kernelBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.