Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Translation... :-(
You are indented with tabs, not spaces. When programming in Python, you need to hang the printed https://pep8.ru/doc/pep8/ in front of your eyes until you learn it by heart :-)
Read at the specified link ( everything is in Russian) about the correct indentation and tabs with spaces.
In PyCharm, open the settings (Ctrl-Alt-S), go to Editor -> Code Style -> Python and on the Tabs and Indents tab, check that there is no checkmark on Use tab character
Well, then correct all such places in the code. Replacing the text or something else - you'll figure it out :-)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question