There should be only one space before or after operators.

Anti-pattern

Note: The character represents a tab.

if xin [1, 2, 3]:
    print(x)

Best practice

if x in [1, 2, 3]:
    print(x)