And what is that you don't understand in the message TabError: inconsistent use of tabs and spaces in indentation?
You cannot mix both tabs and spaces to create indentation. The recommended is to use spaces. All decent IDEs have an option to automatically make tab into 4 spaces (or whatever number of spaces you use, but 4 is recommended as per PEP8)
In addition - your indentation is inconsistent (again!) in lines 10-13, but that will be another error, when you fix the tab/spaces problem.
You cannot mix both tabs and spaces to create indentation. The recommended is to use spaces. All decent IDEs have an option to automatically make tab into 4 spaces (or whatever number of spaces you use, but 4 is recommended as per PEP8)
In addition - your indentation is inconsistent (again!) in lines 10-13, but that will be another error, when you fix the tab/spaces problem.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs