Created
April 11, 2021 00:09
-
-
Save ofelix03/ff6505f284c6cda5d4da2e31db895010 to your computer and use it in GitHub Desktop.
if-checks-on-truthy-values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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