ALL the things you shouldn't do!

Don't use the walrus operator := in convoluted ways!

import sys

if (i := input())[0] == "q" or i == "exit":

This snippet of code stops the program if the input starts with a "q" or if the input is "exit". But does it look good?

Py-don'ts are anti-tips for writing good Python code. Sometimes learning what is good isn't enough. You have to compare it with what is bad as well!