Dec-19-2022, 03:36 PM
(This post was last modified: Dec-19-2022, 04:27 PM by snippsat.
Edit Reason: Fix code tag
)
a=True try: assert a and not print("sucess"),"failure" except Exception as e: print("e is",e)Output is
Sucess
when a is Trueand Output is
Failure
when a is FalseCould someone please explain how this code is working in detail?