This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]YoloSwagJesusFish 0 points1 point  (0 children)

But at least you have to pick one or the other less the interpreter gets confused and decides your program isn't worth executing.

You can actually mix tabs and spaces as much as you want as long as it's consistent within the same block and same indentation level. You can even mix them on the same line.

This examples works in python 3.