DEV Community

loading...

Discussion on: 5 common mistakes made by beginner Python programmers

Collapse
cyberspy profile image
Adam

I'm pretty sure that python 2.7 allows mixed tabs and spaces (not that it is recommended) but python 3.x will error if you try that.
PEP 8 recommends spaces, but you can use tabs if that's what a project already uses.
python.org/dev/peps/pep-0008/#tabs...