Let's talk about Python's assert
statement.
assert
either does nothing or raises AssertionError
When the assert
statement is given a value that's True
, it does nothing:
...
This is a premium screencast available only to active Python Morsels subscribers.
You can find free screencasts on the screencasts page.
Need to fill-in gaps in your Python skills? I send weekly emails designed to do just that.