In python, the expected an indented block error is caused by a mix of tabs and spaces. The python IndentationError: expected an indented block error occurs when you forget to indent the statements within a compound statement or within a user-defined function. To define a code block, you may use any amount of indent, but the indent must match exactly to be at the same level. The IndentationError: expected an indented block error happens when you use both the spaces and tabs to indent in your code. The indentation is expected in an indented block. The IndentationError: expected an indented block error indicates that you have an indentation error in the code block, which is most likely caused by a mix of tabs and spaces.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |