Assert in very important when it comes to validation or debugging in python. We can perform an assertion using the assert keyword.
Assert will also throw AssertionError if the condition is false.
Syntax
assert condition
assert condition, optional message.
Python Series
• Python Tutorials For Beginners
All Playlist
/ mukeshotwani
Connect with us:
Linkedin- / mukesh-otwani-93631b99
Instagram- / mukeshotwani
Facebook Group- / 256655817858291
Facebook Page- / seleniumwebdrivermukesh
Twitter- / mukeshotwani
Blog- http://learn-automation.com