3 comments on “Stringing Python Comparisons Along

  1. “When it doubt, parenโ€™ it out” <== this should be first and foremost when writing complex logic evaluations ๐Ÿ˜€

    I personally can never remember the order of precedence for operators — logical or arithmetical or binary — so I just wrap the parts in parens to explicitly indicate the order of evaluation ๐Ÿ˜‰

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s