Message416783
" 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. |
|
Date |
User |
Action |
Args |
2022-04-05 14:30:04 | terry.reedy | set | recipients:
+ terry.reedy, paul.moore, tim.golden, zach.ware, steve.dower, Dennis Sweeney, vkaushalsai |
2022-04-05 14:30:04 | terry.reedy | set | messageid: <1649169004.71.0.553031186287.issue47226@roundup.psfhosted.org> |
2022-04-05 14:30:04 | terry.reedy | link | issue47226 messages |
2022-04-05 14:30:04 | terry.reedy | create | |
|