Errors Vs Exceptions | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite

Errors Vs Exceptions

What is difference between Errors & Exceptions ?

23rd Jun 2022, 9:35 PM
Mohamed - avatar
2 Réponses
+ 2
Exceptions can be handle by your program but errors can't..
23rd Jun 2022, 10:00 PM
Jayakrishna ūüáģūüá≥
+ 2
From Python docs you can read: ‚ÄĚErrors detected during execution are called exceptions‚ÄĚ. You can catch the exception with an try / except statment. try: n = int(input()) except ValueError: print(‚ÄĚError detected‚ÄĚ)
23rd Jun 2022, 9:54 PM
Per Bratthammar
Per Bratthammar - avatar