Alex Mollberg
Alex Mollberg

Reputation: 231

Python expected indent error

It says expected indent can't figure out how to fix it.

Here is a picture of my problem in idle it says that I have an expected indent error and can't figure out what to do.

Upvotes: 0

Views: 681

Answers (2)

viraptor
viraptor

Reputation: 34145

You have to indent the doc strings to the same level as your code.

Upvotes: 3

Daniel Roseman
Daniel Roseman

Reputation: 599470

All your docstrings should be aligned one more step: they should line up with the code inside the methods, not with the method definitions.

Upvotes: 8

Related Questions