Python Errors and Built - in Exception

Syntax Error:

When some something is wrong in syntax then it will be syntax error which cant be handle, like colon or some code is mistaken

Logical errors (exceptions):

When something is wrong in logic then it is logical error, like 0 division a list index error that can be handled Errors that can be handled are as follows:

1. Zero Division Error

2. Error in the name : No var or fun defined but called.

3. Type Error : Different data types calculation ,String and int.

4. Value Error : Input value is int and user has given or passed string value so value error

5. Index Error : Using index which is not present

6. Key Error : Using different key which is not present in dictionary

7. Module not found error : Using undefined module

8. Import Error : Using undefined function which of the module

try: syntax print("success") except: print("Errors")