This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients Dennis Sweeney, paul.moore, steve.dower, terry.reedy, tim.golden, vkaushalsai, zach.ware
Date 2022-04-05.14:30:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1649169004.71.0.553031186287.issue47226@roundup.psfhosted.org>
In-reply-to
Content
" keys = pygame.key.get_pressed() is showing error called unexpected indent"

The problem is that the keys line in indented one less space than the line above.  A shorter example below.

if True:
    a = 1
   b = 2

SyntaxError: unindent does not match any outer indentation level


This issue tracker is not a help forum.  Next time, please post instead to something like python-list.  Give a minimal snippet of code, like my example above, showing the problem and the complete error message. Also, copy and paste the error message instead of an image.

Please read https://stackoverflow.com/help/minimal-reproducible-example
about how to ask good questions.

This is in no way an IDLE issue.
History
Date User Action Args
2022-04-05 14:30:04terry.reedysetrecipients: + terry.reedy, paul.moore, tim.golden, zach.ware, steve.dower, Dennis Sweeney, vkaushalsai
2022-04-05 14:30:04terry.reedysetmessageid: <1649169004.71.0.553031186287.issue47226@roundup.psfhosted.org>
2022-04-05 14:30:04terry.reedylinkissue47226 messages
2022-04-05 14:30:04terry.reedycreate