Skip to content
All lessons

Tech Insights· twitter.com

Thread: How much code do you put in one statement?

From twitter.com

#python tip: Q. How much code do you put in one statement? A. Statements should correspond to one complete thought expressible in a single sentence in plain English. English: I'll drive if it is raining; otherwise, I'll walk: Python: action = 'drive' if raining else 'walk'

Shared by

Read on twitter.com
  • Python

Book a call

Lessons like this one
shape how we build.

Tell us what you’re building. In one call, we’ll show you how our team would approach it.

Tell us what you’re building, and we’ll show you how we’d approach it.

Still prefer the good old email? Contact us