Welcome to the Treehouse Community
Looking to learn something new?
Yosef Fastow18,526 Points
What is this Tab Error about?
I'm getting a Tab Error that I don't understand... Tab Error: inconsistent use of tabs and spaces in indentation
Why am I getting this Error and how do I prevent it?
The error you're describing is caused by including both a tab and spaces to indent code in the same file. Python doesn't know how many spaces are intended by a tab for your code specifically, so it throws the error instead of guessing and potentially having unexpected results when the code is run. This error can be avoided by using an IDE which converts tabs to spaces, only using tabs for indentation, or only using spaces for indentation.
Hope that helps!