How will you handle exception in python?
Question
How will you handle exception in python?
Answer
try, except and finally key word is used to handle the exception try: #code except: #catches the exception finally: #executes the block whether any exception is raised or not.
š² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.