i
Kulsys
Filter interviews by
I applied via Campus Placement and was interviewed in Sep 2023. There were 3 interview rounds.
12 min duration
Topics: Mathematics, logical reasoning
Exception handling in Python is a way to handle errors that may occur during the execution of a program.
Use try-except blocks to catch and handle exceptions
Different types of exceptions can be caught and handled separately
Use finally block to execute code regardless of whether an exception occurred
Custom exceptions can be defined by creating a new class that inherits from the Exception class
Use the print function in Python to display an error message.
Use the print function followed by the error message enclosed in quotes
You can also use the sys module to display more detailed error messages
Consider using try-except blocks to catch and print specific errors
Top trending discussions
Project Manager
3
salaries
| ₹4.8 L/yr - ₹8 L/yr |
IT Project Coordinator
3
salaries
| ₹4.8 L/yr - ₹7 L/yr |
Primus Global Technologies
TriGeo Technologies
GrapplTech
Plada Infotech Services