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

Indentation error is because you have mixed space with tab.
Or
You have given logical wrong indents
Also you did not post the actual code for us to see the indents that you have used. Looking at the code you seem to be creating some class is all any one can say

def create_zendesk_ticket(self,event_id,event_status):
for e.g it should ideally be at the left most corner without any space or tab before the word def
Reply


Messages In This Thread
RE: IndentationError: unexpected indent (Python) - by radioactive9 - Aug-11-2017, 01:43 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unexpected termination of program when using JDBC drivers in python with jaydebeapi skarface19 2 393 Feb-17-2024, 12:01 PM
Last Post: skarface19
  Unexpected Output - Python Dataframes: Filtering based on Overlapping Dates Xensor 5 767 Nov-15-2023, 06:54 PM
Last Post: deanhystad
  getting unexpected indent errors trying to move cells up jensengt 4 919 Jun-28-2023, 12:05 PM
Last Post: deanhystad
  xml indent SubElements (wrapping) with multiple strings ctrldan 2 1,551 Jun-09-2023, 08:42 PM
Last Post: ctrldan
  IndentationError: unexpected indent dee 3 2,382 May-02-2022, 02:15 AM
Last Post: dee
  Avoid multiple repeat in indent Frankduc 8 2,942 Jan-18-2022, 05:46 PM
Last Post: Frankduc
  error "IndentationError: expected an indented block" axa 4 2,964 Sep-08-2020, 02:09 PM
Last Post: ibreeden
  IndentationError: unexpected indent jk91 1 2,406 Feb-27-2020, 08:56 PM
Last Post: buran
  could not fix unexpected indent Bayan 1 3,236 Nov-08-2019, 01:45 PM
Last Post: ichabod801
  IndentationError jagannath 1 2,502 Nov-04-2019, 07:41 AM
Last Post: buran

Forum Jump:

User Panel Messages

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