Errors Vs Exceptions | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Errors Vs Exceptions

What is difference between Errors & Exceptions ?

23rd Jun 2022, 9:35 PM
Mohamed
Mohamed - avatar
2 Respostas
+ 2
Exceptions can be handle by your program but errors can't.. https://www.sololearn.com/discuss/3029432/?ref=app
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ā€) https://code.sololearn.com/caVHKuzjOn2J/?ref=app
23rd Jun 2022, 9:54 PM
Per Bratthammar
Per Bratthammar - avatar