Indentationerror unindent does not match any outer indentation level как исправить

When I compile the Python code below, I get

IndentationError: unindent does not match any outer indentation level


import sys

def Factorial(n): # Return factorial
    result = 1
    for i in range (1,n):
        result = result * i
    print "factorial is ",result
    return result

Why?

Martijn Pieters's user avatar

asked Jan 29, 2009 at 16:34

cbrulak's user avatar

7

Other posters are probably correct…there might be spaces mixed in with your tabs. Try doing a search & replace to replace all tabs with a few spaces.

Try this:

import sys

def Factorial(n): # return factorial
    result = 1
    for i in range (1,n):
        result = result * i
    print "factorial is ",result
    return result

print Factorial(10)

Machavity's user avatar

Machavity

30.7k27 gold badges91 silver badges100 bronze badges

answered Jan 29, 2009 at 16:37

Kevin Tighe's user avatar

Kevin TigheKevin Tighe

20k4 gold badges35 silver badges36 bronze badges

8

IMPORTANT:
Spaces are the preferred method — see PEP 8 Indentation and Tabs or Spaces?. (Thanks to @Siha for this.)

For Sublime Text users:

Set Sublime Text to use tabs for indentation:
View —> Indentation —> Convert Indentation to Tabs

Uncheck the Indent Using Spaces option as well in the same sub-menu above.
This will immediately resolve this issue.

wjandrea's user avatar

wjandrea

27.1k9 gold badges58 silver badges80 bronze badges

answered May 8, 2014 at 11:44

psiyum's user avatar

psiyumpsiyum

6,3993 gold badges29 silver badges50 bronze badges

6

To easily check for problems with tabs/spaces you can actually do this:

python -m tabnanny yourfile.py

or you can just set up your editor correctly of course :-)

answered Feb 4, 2009 at 21:50

André's user avatar

AndréAndré

12.9k3 gold badges33 silver badges45 bronze badges

3

Are you sure you are not mixing tabs and spaces in your indentation white space? (That will cause that error.)

Note, it is recommended that you don’t use tabs in Python code. See the style guide. You should configure Notepad++ to insert spaces for tabs.

Peter Mortensen's user avatar

answered Jan 29, 2009 at 16:41

zdan's user avatar

zdanzdan

28.4k7 gold badges59 silver badges70 bronze badges

2

Whenever I’ve encountered this error, it’s because I’ve somehow mixed up tabs and spaces in my editor.

answered Jan 29, 2009 at 16:45

Dana's user avatar

DanaDana

31.9k17 gold badges62 silver badges73 bronze badges

0

If you are using Vim, hit escape and then type

gg=G

This auto indents everything and will clear up any spaces you have thrown in.

answered May 7, 2015 at 9:43

cbartondock's user avatar

cbartondockcbartondock

6546 silver badges17 bronze badges

0

If you use Python’s IDLE editor you can do as it suggests in one of similar error messages:

1) select all, e.g. Ctrl + A

2) Go to Format -> Untabify Region

3) Double check your indenting is still correct, save and rerun your program.

I’m using Python 2.5.4

Tshilidzi Mudau's user avatar

answered Jun 13, 2013 at 15:26

Gatica's user avatar

GaticaGatica

5931 gold badge6 silver badges13 bronze badges

0

The line: result = result * i should be indented (it is the body of the for-loop).

Or — you have mixed space and tab characters

answered Jan 29, 2009 at 16:38

Abgan's user avatar

AbganAbgan

3,69022 silver badges31 bronze badges

2

For Spyder users goto
Source > Fix Indentation
to fix the issue immediately

answered Jan 5, 2020 at 16:56

Abdulbasith's user avatar

0

Using Visual studio code

If you are using vs code than, it will convert all mix Indentation to either space or tabs using this simple steps below.

  1. press Ctrl + Shift + p

  2. type indent using spaces

  3. Press Enter

answered Jul 24, 2020 at 8:01

Devil's user avatar

DevilDevil

1,02212 silver badges18 bronze badges

1

On Atom

go to

Packages > Whitespace > Convert Spaces to Tabs

Then check again your file indentation:

python -m tabnanny yourFile.py

or

>python
>>> help("yourFile.py")

answered Mar 11, 2015 at 14:27

loretoparisi's user avatar

loretoparisiloretoparisi

15.5k11 gold badges100 silver badges142 bronze badges

If you use notepad++, do a «replace» with extended search mode to find t and replace with four spaces.

answered Mar 20, 2014 at 17:23

Jackie Lee's user avatar

Jackie LeeJackie Lee

2393 silver badges3 bronze badges

Looks to be an indentation problem. You don’t have to match curly brackets in Python but you do have to match indentation levels.

The best way to prevent space/tab problems is to display invisible characters within your text editor. This will give you a quick way to prevent and/or resolve indentation-related errors.

Also, injecting copy-pasted code is a common source for this type of problem.

answered Jul 31, 2012 at 20:27

Matt Kahl's user avatar

Matt KahlMatt Kahl

7437 silver badges9 bronze badges

If you use colab, then you can do avoid the error by this commands.

  1. < Ctrl-A >
  2. < Tab >
  3. < Shift-Tab >

It’s all [tab] indentation convert to [space] indentation. Then OK.

answered Nov 25, 2021 at 3:40

WangSung's user avatar

WangSungWangSung

2192 silver badges5 bronze badges

0

I’m using Sublime text in Ubuntu OS. To fix this issue go to

view -> Indentation -> convert indentation to tabs

Dharman's user avatar

Dharman

30.3k22 gold badges84 silver badges132 bronze badges

answered Mar 3, 2021 at 10:28

Rahal Kanishka's user avatar

Just a addition. I had a similar problem with the both indentations in Notepad++.

  1. Unexcepted indentation
  2. Outer Indentation Level

    Go to —-> Search tab —-> tap on replace —-> hit the radio button Extended below —> Now replace t with four spaces

    Go to —-> Search tab —-> tap on replace —-> hit the radio button Extended below —> Now replace n with nothing

answered Nov 12, 2015 at 21:42

I was using Jupyter notebook and tried almost all of the above solutions (adapting to my scenario) to no use. I then went line by line, deleted all spaces for each line and replaced with tab. That solved the issue.

answered Dec 15, 2018 at 4:48

Cur123's user avatar

Cur123Cur123

911 silver badge8 bronze badges

For what its worth, my docstring was indented too much and this also throws the same error

class junk: 
     """docstring is indented too much""" 
    def fun(): return   

IndentationError: unindent does not match any outer indentation level

answered Mar 5, 2019 at 23:00

plfrick's user avatar

plfrickplfrick

1,08912 silver badges12 bronze badges

1

It could be because the function above it is not indented the same way.
i.e.

class a:
    def blah:
      print("Hello world")
    def blah1:
      print("Hello world")

answered Feb 14, 2014 at 2:52

Ali's user avatar

0

Since I realize there’s no answer specific to spyder,I’ll add one:
Basically, carefully look at your if statement and make sure all if, elif and else have the same spacing that is they’re in the same line at the start like so:

def your_choice(answer):
    if answer>5:
        print("You're overaged")
    elif answer<=5 and answer>1: 
            print("Welcome to the toddler's club!")
    else:
            print("No worries mate!")

answered Dec 7, 2018 at 13:42

NelsonGon's user avatar

NelsonGonNelsonGon

13k7 gold badges27 silver badges57 bronze badges

0

I am using Sublime Text 3 with a Flask project. I fixed the error using View > Indentation > Tab Width: 4 after unselected Indent Using Spaces

answered Jun 30, 2020 at 15:52

bmc's user avatar

bmcbmc

8171 gold badge12 silver badges22 bronze badges

This is because there is a mix-up of both tabs and spaces.
You can either remove all the spaces and replace them with tabs.

Or,
Try writing this:

#!/usr/bin/python -tt

at the beginning of the code. This line resolves any differences between tabs and spaces.

answered Mar 5, 2014 at 13:43

Eragon's user avatar

I had the same issue yesterday, it was indentation error, was using sublime text editor. took my hours trying to fix it and at the end I ended up copying the code into VI text editor and it just worked fine. ps python is too whitespace sensitive, make sure not to mix space and tab.

answered Jun 26, 2014 at 15:57

user3731311's user avatar

0

for Atom Users, Packages ->whitspace -> remove trailing whitespaces
this worked for me

answered Jul 28, 2015 at 12:41

Aha's user avatar

I had a function defined, but it did not had any content apart from its function comments…

def foo(bar):
    # Some awesome temporary comment.
    # But there is actually nothing in the function!
    # D'Oh!

It yelled :

  File "foobar.py", line 69

                                ^
IndentationError: expected an indented block

(note that the line the ^ mark points to is empty)

Multiple solutions:

1: Just comment out the function

2: Add function comment

def foo(bar):
    '' Some awesome comment. This comment could be just one space.''

3: Add line that does nothing

def foo(bar):
    0

In any case, make sure to make it obvious why it is an empty function — for yourself, or for your peers that will use your code

answered Dec 10, 2018 at 14:07

Cedric's user avatar

CedricCedric

5,07511 gold badges42 silver badges59 bronze badges

1

Firstly, just to remind you there is a logical error you better keep result=1 or else your output will be result=0 even after the loop runs.

Secondly you can write it like this:

import sys

def Factorial(n): # Return factorial
  result = 0
  for i in range (1,n):
     result = result * i

  print "factorial is ",result
  return result

Leaving a line will tell the python shell that the FOR statements have ended. If you have experience using the python shell then you can understand why we have to leave a line.

answered Dec 25, 2018 at 11:49

Faisal Ahmed Farooq's user avatar

For example:

1. def convert_distance(miles):
2.   km = miles * 1.6
3.   return km

In this code same situation occurred for me. Just delete the previous indent spaces of
line 2 and 3, and then either use tab or space. Never use both. Give proper indentation while writing code in python.
For Spyder goto Source > Fix Indentation. Same goes to VC Code and sublime text or any other editor. Fix the indentation.

answered Apr 11, 2020 at 6:48

Ayush Aryan's user avatar

Ayush AryanAyush Aryan

2014 silver badges4 bronze badges

I got this error even though I didn’t have any tabs in my code, and the reason was there was a superfluous closing parenthesis somewhere in my code. I should have figured this out earlier because it was messing up spaces before and after some equal signs… If you find anything off even after running Reformat code in your IDE (or manually running autopep8), make sure all your parentheses match, starting backwards from the weird spaces before/after the first equals sign.

answered Jul 24, 2020 at 7:52

Bartleby's user avatar

BartlebyBartleby

1,0541 gold badge13 silver badges14 bronze badges

Another way of correcting the indentation error is to copy your
code to PyCharm if you have configured that already and reformat the file
it will automatically indent correctly.

answered Jan 2 at 12:40

Zeeshan Javed's user avatar

I had the same error because of another thing, it was not about tabs vs. spaces. I had the first if slightly more indented than an else: much further down. If it is just about a space or two, you might oversee it after a long code block. Same thing with docstrings:

"""comment comment 
comment
"""

They also need to be aligned, see the other answer on the same page here.

Reproducible with a few lines:

if a==1:
    print('test')
 else:
    print('test2')

Throws:

  File "<ipython-input-127-52bbac35ad7d>", line 3
    else:
         ^
IndentationError: unindent does not match any outer indentation level

answered Oct 1, 2021 at 14:19

questionto42's user avatar

questionto42questionto42

6,5464 gold badges52 silver badges85 bronze badges

Вот код:

import pygame
import sys

pygame.init()
win = pygame.display.set_mode((500, 500))

pygame.display.set_caption("ParaaCherzz")

x = 50
y = 425
width = 40
height = 60
speed = 5

isJump = False
jumpCount = 10

run = True
while run:
  pygame.time.delay(50)

  for event in pygame.event.get():
      if event.type == pygame.QUIT:
        run = False
        sys.exit()
  if event.type == pygame.KEYDOWN:
     if event.key == pygame.K_LEFT and x > 5:
         x -= speed
     if event.key == pygame.K_RIGHT and   x < 500 - width - 5:
         x += speed
  if not(isJump):
     if event.key == pygame.K_UP and y > 5:
         y -= speed
     if event.key == pygame.K_DOWN and y < 500 - height -15:
         y += speed
     if event.key == pygame.K_SPACE:
         isJump = True
  else:
      if jumpCount >= -10:
          if jumpCount < 0:
         y += (jumpCount ** 2) / 2
     else:
         y -= (jumpCount ** 2) / 2
        jumpCount -= 1
    else:
      isJump = False
      jumpCount = 10

  win.fill((0,0,0))
  pygame.draw.rect(win, (0,0,255), (x, y, width, height))
  pygame.display.update()

pygame.quit()

Когда пытаюсь запустить, ошибка в строке 41 (y += (jumpCount ** 2) / 2):

IndentationError: unindent does not match any outer indentation level

Как исправить?


  • Вопрос задан

    более двух лет назад

  • 21119 просмотров

Пригласить эксперта

Да отступы свои исправьте!
Мало того, что в коде они у вас не верны, о чем вам интерпретатор явно говорит, так и сюда тыкаете код вообще без отсупов. В Python отступы — это все, неужели на первом занятии вам об этом не сказали???
И да, английским займитесь. Слово «indentation» так и переводится — «отступ».

Перепроверьте сколько пробклов в каждой строчке. Нет ли там табов?

В питоне нет фигурных скобок, как в си, или begin/end, как в паскале. Содержимое блока (if/for) выделяется отступом.


  • Показать ещё
    Загружается…

28 мая 2023, в 11:41

8000 руб./за проект

28 мая 2023, в 11:31

1500 руб./за проект

28 мая 2023, в 11:22

12000 руб./за проект

Минуточку внимания

Indenting your code can be a messy business if you try to use both spaces and tabs. In Python, using both methods of indentation results in an error. This error is “indentationerror: unindent does not match any outer indentation level”.

In this guide, we talk about what this error means and when it is raised. We walk through an example of this error in action to help you learn how to fix it.

Get offers and scholarships from top coding schools illustration

Find Your Bootcamp Match

  • Career Karma matches you with top tech bootcamps
  • Access exclusive scholarships and prep courses

Select your interest

First name

Last name

Email

Phone number

By continuing you agree to our Terms of Service and Privacy Policy, and you consent to receive offers and opportunities from Career Karma by telephone, text message, and email.

indentationerror: unindent does not match any outer indentation level

Python code can be indented with tabs or spaces. It’s up to you.

Python only has an objection when you use both spaces and tabs to indent your code. Python requires you use only one method of indentation. This is because the language is statically typed. Statically typed programming languages are sticklers when it comes to syntax. 

Indentation errors are a difficult one to understand because it involves the invisible: mixing spaces and tabs. Depending on the code editor you are using, you may not even be able to see whether spaces or tabs have been used until you delete your indents from your code.

IndentationErrors are common when you copy code snippets from the internet. Every developer has their own preference when it comes to indentation and you’ll often find code snippets do not adhere to your own preferences. Some snippets will indent with spaces.

If a code snippet you copy into your program uses a different type of indentation, you may see an IndentationError in your code. This is because you mix tabs and spaces.

An Example Scenario

Write a program that finds the factors of a number.

Start by defining a function to calculate the factors of a number:

def get_factors(number):
	for i in range(1, number + 1):
		if number % i == 0:
			print("{} is a factor of {}.".format(i, number))

This function uses a for loop to iterate through every number in the range of 1 and the number we have specified plus 1.

In each iteration, our program checks if there is a remainder after dividing “number” by “i”. We do this using the modulo operator. If there is not a remainder, “i” is a factor of “number”.

If a number is a factor of “number”, a message is printed to the console.

We to call our function:

This code calculates all the factors of 32. Run our code and see what happens:

  File "test.py", line 4
	print("{} is a factor of {}.".format(i, number))
                                               	^
IndentationError: unindent does not match any outer indentation level

Our code returns an IndentationError.

The Solution

We have made a mistake with the styling of our code. We know this because IndentationErrors are raised when there is a problem with how your code is indented.

Take a look at how our code is styled. In Sublime Text, we can see the styles of our code by hovering over each line:

ZkT2zfCE1h22 Ldf RwNqSrZL9fUBLG VdcBcqh559l QY6dDanxnhIiihRf52m10qUKnPgFyT2uG6YxVF5MoRzAVitrOwbnF 04EUYhdD3dMZZXkO3aOERWcZYtYsJpOFu1rqun

Each line represents a tab. Each dot represents a space. You can see that we have mixed up both spaces and tabs in our code snippet. Python likes consistency in indents and so the interpreter returns an error when we run our code.

If you use a text editor that does not support this behavior, check whether your code uses spaces or tabs by backspacing your indentation. If your code removes a tab when you press the backspace key, that part of your code is using tabs.

Spaces are the preferred method of indentation in Python but you can use tabs if you want.

Let’s revise our code:

def get_factors(number):
		for i in range(1, number + 1):
				if number % i == 0:
						print("{} is a factor of {}.".format(i, number))

We have replaced all the spaces with tabs. Run our program again:

1 is a factor of 32.
2 is a factor of 32.
4 is a factor of 32.
8 is a factor of 32.
16 is a factor of 32.
32 is a factor of 32.

Our code successfully returns a list of all the factors of 32. This shows us that our code was logically accurate all along. It was our indentation that caused the problem.

Conclusion

The “indentationerror: unindent does not match any outer indentation level” error is raised when you use both spaces and tabs to indent your code.

To solve this error, check to make sure that all your code uses either spaces or tabs in a program. Now you’re ready to resolve this common Python error like a professional software developer!

Table of Contents
Hide
  1. What is Indentation in Python?
  2. Tabs or Spaces?
  3. Fix indentationerror: unindent does not match any outer indentation level
    1. A mix of Spaces and Tabs
    2. Mismatch of Indent size inside a code block
    3. Wrong indentation or mismatch of a code block

Indentation in Python is important, and it makes your code well structured and clean. Python uses indentation to define code blocks. You can use either tabs or spaces to indent the code. However, using a combination of space and tab will result in indentationerror: unindent does not match any outer indentation level.

What is Indentation in Python?

In Python, indentation is done using whitespace. In simple terms, indentation refers to adding white space before a statement. According to the PEP 8 rule, the standard way to indent the code is to use 4 spaces per indent level.

Without indentation Python will not know which code to execute next or which statement belongs to which block and will lead to IndentationError.

Tabs or Spaces?

The best practice is to use spaces as the indentation, and the same is the preferred indentation by the PEP 8 rule.

Tabs should be used solely to remain consistent with code that is already indented with tabs.

Mixing tabs and spaces is not allowed, and if you do that, Python will throw indentationerror: unindent does not match any outer indentation level, and the compilation of the code will fail.

Let’s take few examples and find out the possible cause and solution for indentationerros in Python.

A mix of Spaces and Tabs

This would be a common scenario where the developers tend to make mistakes by mixing both spaces and tabs. Follow one approach consistently, either tab or space, to resolve the error but never use a mix of both.

Example 

a=5
b=10

if a<b:
    print("Using 4 space for indentation")
    print("using tab for indentation")

Output

  File "c:ProjectsTryoutslistindexerror.py", line 6
    print("using tab for indentation")
IndentationError: unexpected indent

Suppose you are using code editors like VS Code and Pycharm. In that case, it will automatically resolve the issue by converting from tabs to spaces or spaces to tab, depending on the IDE configuration settings. However, if you are using any other editor like notepad++ or sublime or using the command line for writing code, you may face this issue often, and the solution is to use one consistent approach.

Mismatch of Indent size inside a code block

If you are using any statements, loops, and functions, the code block inside should have the same indentation level. Otherwise, you wil get an IndentationError.

Example 

number=6
for i in range(1,number):
    print (i)
        print(number)

Output

 File "c:ProjectsTryoutslistindexerror.py", line 4
    print(number)
IndentationError: unexpected indent

Solution

number=6
for i in range(1,number):
    print (i)
    print(number)

Wrong indentation or mismatch of a code block

Often in larger projects, the number of lines will be more, leading to a mismatch of code blocks while writing loops, statements, and functions.

A typical use case is an if-else statement where due to a large no of lines the, if block and else block indentation may differ, which leads to indentationerror: unindent does not match any outer indentation level.

Example

a=5
b=6

if a< b:
        print("a is smaller")
    else:
        print("b is smaller")

Output

  File "c:ProjectsTryoutslistindexerror.py", line 6
    else:
         ^
IndentationError: unindent does not match any outer indentation level

Solution

a=5
b=6

if a< b:
        print("a is smaller")
else:
        print("b is smaller")

Output

a is smaller

Avatar Of Srinivas Ramakrishna

Srinivas Ramakrishna is a Solution Architect and has 14+ Years of Experience in the Software Industry. He has published many articles on Medium, Hackernoon, dev.to and solved many problems in StackOverflow. He has core expertise in various technologies such as Microsoft .NET Core, Python, Node.JS, JavaScript, Cloud (Azure), RDBMS (MSSQL), React, Powershell, etc.

Sign Up for Our Newsletters

Subscribe to get notified of the latest articles. We will never spam you. Be a part of our ever-growing community.

By checking this box, you confirm that you have read and are agreeing to our terms of use regarding the storage of the data submitted through this form.

Table of Contents

  • ✨ Indentation in Python
    • ◈ Example 1
    • ◈ Example 2
  • ✨ Avoid or Fix IndentationError In Code Editors
    • ➥ Sublime Text
    • ➥ Notepad++
    • ➥ Using an IDE
  • ✨ Practice Exercise
  • Conclusion

IndentationError: unindent does not match any outer indentation level

You must have come across this stupid bug at some point of time while coding. Isn’t it frustrating to get an error even if your code is logically correct!
But after you read this article, you will probably never come across this error again. Even if you do, you will be able to rectify it in a flash! So without further delay, let us dive into our discussion on IndentationError in Python.

Indentation in Python

Indentation refers to the spaces at the beginning of a line of code.

In other programming languages like Java, indentation serves the purpose of readability. Even if you do not follow the proper indentation in such languages, it won’t hamper your code’s execution since they use braces {} to represent a block of code.

In Python indentation is an integral feature that represents a block of code and determines the execution of your code. When you skip proper indentation, Python will throw an IndentationError.

Each line of code within a block should have an equal number of whitespaces before them. If a for loop block contains two lines of code, then each line should have four whitespaces (ideally) before them. If one line of code has three whitespaces while the other has four, you will again get an IndentationError.

Example 1

Here’s the code:

for i in range(1,6):

    if i%2==0:

     print(i,‘ is even’)

else:

     print(i,» is odd»)

Output:

   File «D:/PycharmProjects/pythonProject1/IndentationError.py», line 4

    else:

        ^

IndentationError: unindent does not match any outer indentation level

Process finished with exit code 1

Solution:

To fix the IndentationError: expected an indented block use the same number of whitespaces for each line of code in a given block.

for i in range(1, 6):

    if i % 2 == 0:

        print(i, ‘ is even’)

    else:

        print(i, » is odd»)

Output:

1  is odd

2  is even

3  is odd

4  is even

5  is odd

✍️ Note:

  • Generally, you should use four whitespaces for indentation and are preferred over tabs.
  • You can ignore indentation in line continuation, but it’s always recommended to indent your code for better readability.
    • For example: if True :print("Welcome To Java2Blog!")

Let’s discuss another example to clarify things further.

◈ Example 2

Consider the following program given below:

age = 25

if age<18:

    print(‘You cannot Vote!’)

else:

    print(‘You can Vote!’)

Output:

File «<tokenize>», line 4

    else:

    ^

IndentationError: unindent does not match any outer indentation level

Explanation:

The above error occurred because line 4 , which represents the else block, has an improper indentation. It happened because we mixed TAB and spaces in our code to indent the if-else blocks.

Solution:

Either use TAB or 4 whitespaces (recommended) for both statements (if-else)

age = 25

if age<18:

    print(‘You cannot Vote!’)

else:

    print(‘You can Vote!’)

# Output: You can Vote!

Avoid or Fix IndentationError In Code Editors

The primary reason behind IndentationError in Python is the improper use of whitespaces and tabs in your program. In most code editors you can fix the number of whitespace characters/ tabs by setting the indentation levels.

Let us have a look at the settings in various code editors that allow us to auto-indent our code or fix the pre-existing errors :

➥ Sublime Text

  1. Click in View.
  2. Select Indentation.
  3. Select Indentation to tabs.
  4. Uncheck the Indent Using Spaces option in the sub-menu above.

➥ Notepad++

Follow the settings given below to view the tabs or whitespaces in Notepad++.

  1. Click on View
  2. Select Show Symbol
  3. Make sure that Show Whitespace and TAB and Show Indent Guide options are checked.

➥ Using an IDE

The advantage of using an IDE like PyCharm is that you do not have to worry about indentations in your code manually. It is taken care of by the IDE itself, as shown in the presentation given below.

Practice Exercise

Let’s test your knowledge with an exercise. Find the error in the following code and rectify it.

for i in range(6):

    for j in range(i):

        print(‘*’,end=«»)

print()

Expected Output:

*
**
***
****
*****

Hint: last line in the code looks fishy! 🕵️

Solution:

Conclusion

I hope you enjoyed reading this article and learned how to fix Indentation Errors in Python. Please subscribe and stay tuned for more exciting articles in the future!

Понравилась статья? Поделить с друзьями:
  • Как найти dns адрес на телефоне
  • Как исправить выходное аудиоустройство не установлено виндовс 10
  • Как правильно составить завещание образцы
  • Как найти лагерь по карте
  • Как исправить вылеты виндовс 10