Skip to content

Instantly share code, notes, and snippets.

@ofelix03
Created April 11, 2021 00:09
Show Gist options
  • Select an option

  • Save ofelix03/ff6505f284c6cda5d4da2e31db895010 to your computer and use it in GitHub Desktop.

Select an option

Save ofelix03/ff6505f284c6cda5d4da2e31db895010 to your computer and use it in GitHub Desktop.
if-checks-on-truthy-values
invoice = Invoice(amount=2000,
invoice_date='2021-04-30',
customer=' Toyota Motor Corporation',
number='INV-20001')
if invoice.is_due is True:
# send a followup report to customer
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment