Ad
  • Custom User Avatar

    From the PEP8 Style guide (https://www.python.org/dev/peps/pep-0008/):

    • Compound statements (multiple statements on the same line) are generally discouraged.
    • Always surround these binary operators with a single space on either side: assignment (=), augmented assignment (+=, -= etc.), comparisons (==, <, >, !=, <>, <=, >=, in, not in, is, is not), Booleans (and, or, not).

    This probably should not be the top best practices solution