Python line continuation: How parentheses split long lines

Use parentheses to split long Python code across lines:

if x == 10 and
   y == 20:
    print('Yes!') # ☹️

But with parentheses, Python sees it as one line:

if (x == 10 and
    y == 20):   # 🙂
    print('Yes!')

Or in comprehensions…

[x*5 
 for x in range(10)
 if x % 2]