6 Answers
New AnswerWell, according to the Python's philosophy: Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Readability counts. It's up to you... however if you want a clean, beautiful and readable code you should tab indentations; its let you read easily the code, identity the blocks.
I personally prefer tab, but many people like 2-3 spaces. It's up to personal preference.
tabs can be displayed differently in different editors while spaces are constant. apart from that,i dont think there is much difference.
using tabs may cause problems when changing editors,or pasting ur code to a page,or sending it to some1 else to edit.but I prefer tabs to spaces for speed.quick fix for the errors is that most editors have an option to convert tabs to 4 spaces.fixes compatibility issues between different editors
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message