Terry J. Reedy <tjre...@udel.edu> added the comment:
" 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. ---------- resolution: -> not a bug stage: -> resolved status: open -> closed title: if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error called unexpected indent -> Unexpected indent message _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue47226> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com