Glossary
Assert
Use assert for condition verification in Python
Python Assert will throw an error if a conditional does NOT equal True
. This is most commonly used when debugging your code.
Python Assert will throw an error if a conditional does NOT equal True
. This is most commonly used when debugging your code.
Remember that a conditional is denoted by the double equals sign β==β
It is roughly similar to:
Letβs take a look at a python assert code sample