(i) Syntax Error:
A syntax error occurs when Python code is written incorrectly
and violates Python’s grammar rules.
Example: print("Hello")# Corrected: Missing closing parenthesis
This will result in a SyntaxError.
(ii) Implicit Type Conversion:
In implicit type conversion, Python automatically converts
one data type to another during an operation.
Example: a = 5 b = 2.0 result = a + b
Here, Python implicitly converts the integer 5 to a float
and adds it to 2.0, resulting in 7.0.