> Can you please explain what do you mean by not mixing tabs and spaces ?

Don't use *both* spaces and tabs.

> Because according to the documentation we need to consider 4 spaces for indentation

Yes, but that doesn't mean you should set up tab length = 4 spaces.