Categories
Mastering Development

How to properly use assertion in python?

I have a python program that needs to assert a lot of nested conditions before executing. Python has a way to assert with assert statement, Syntex: assert condition, error_message(optional) but, I need to assert multiple nested conditions, and probably execute multiple statements in the assert. what is proper way to use assert in python?