Python Forum
IndentationError: unexpected indent
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IndentationError: unexpected indent
#1
Hi,

When trying to run this program
Print ('Hi')I am getting attached error any idea how to resolve it?

Thanks

Attached Files

Thumbnail(s)
   
Reply
#2
don't post images of code and errors. Please, use proper tags when post code, traceback, output, etc.
See BBcode help for more info.
es
The error is clear - you have extra space in the beginning of the line #1. Remove the spaces
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  getting unexpected indent errors trying to move cells up jensengt 4 862 Jun-28-2023, 12:05 PM
Last Post: deanhystad
  xml indent SubElements (wrapping) with multiple strings ctrldan 2 1,443 Jun-09-2023, 08:42 PM
Last Post: ctrldan
  IndentationError: unexpected indent dee 3 2,294 May-02-2022, 02:15 AM
Last Post: dee
  Avoid multiple repeat in indent Frankduc 8 2,858 Jan-18-2022, 05:46 PM
Last Post: Frankduc
  error "IndentationError: expected an indented block" axa 4 2,897 Sep-08-2020, 02:09 PM
Last Post: ibreeden
  could not fix unexpected indent Bayan 1 3,184 Nov-08-2019, 01:45 PM
Last Post: ichabod801
  IndentationError jagannath 1 2,460 Nov-04-2019, 07:41 AM
Last Post: buran
  unable to indent json data dataplumber 4 2,992 Oct-22-2019, 01:55 PM
Last Post: dataplumber
  IndentationError: expected an indented block ryder5227 2 2,592 Sep-27-2019, 06:59 PM
Last Post: jefsummers
  IndentationError on installed package evvvonder 3 3,010 Jun-29-2019, 10:30 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020