Assignment with “or” in python [closed] April 12, 2023 by Tarik No, it’s a common practice. It’s only considered bad style for expressions that are considerably longer than yours.