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.

classification
Title: Unexpected indent message
Type: Stage: resolved
Components: IDLE, Windows Versions: Python 3.10
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: Dennis Sweeney, vkaushalsai
Priority: normal Keywords:

Created on 2022-04-05 05:33 by vkaushalsai, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python problem.PNG vkaushalsai, 2022-04-05 14:16 this is the problem
Messages (3)
msg416754 - (view) Author: Dennis Sweeney (Dennis Sweeney) * (Python committer) Date: 2022-04-05 05:41
What error message?
msg416779 - (view) Author: Kaushal Sai v (vkaushalsai) Date: 2022-04-05 14:09
the error mesessage is tha unexpected incident
msg416783 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2022-04-05 14:30
" 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-11 14:59:58adminsetgithub: 91382
2022-04-05 14:30:50terry.reedysetnosy: - terry.reedy, paul.moore, tim.golden, zach.ware, steve.dower
2022-04-05 14:30:04terry.reedysetstatus: 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
messages: + msg416783

resolution: not a bug
stage: resolved
2022-04-05 14:24:48vkaushalsaisetcomponents: + IDLE
2022-04-05 14:16:48vkaushalsaisetfiles: + python problem.PNG
status: pending -> open
2022-04-05 14:12:54vkaushalsaisetstatus: open -> pending
2022-04-05 14:09:36vkaushalsaisetnosy: + paul.moore, tim.golden, zach.ware, steve.dower
messages: + msg416779
components: + Windows, - IDLE
2022-04-05 14:04:52vkaushalsaisettitle: if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error -> if we write a line of code like i wrote keys = pygame.key.get_pressed() is showing error called unexpected indent
2022-04-05 14:03:18vkaushalsaisetstatus: pending -> open
versions: + Python 3.10, - Python 3.11
nosy: + terry.reedy

assignee: terry.reedy
components: + IDLE
2022-04-05 07:23:29vkaushalsaisetstatus: open -> pending
2022-04-05 05:41:45Dennis Sweeneysetnosy: + Dennis Sweeney
messages: + msg416754
2022-04-05 05:33:58vkaushalsaicreate