Considering the given statement in Python:
Print("Hello world")
What type of error will be generated?
🎥 Video solution / Text Solution of this question is given below:
In Python, function names are case-sensitive. The correct function is print(), not Print().
When you write Print("Hello world"), Python tries to find a variable or function named Print, which doesn’t exist — hence it raises a NameError.
Example Output:
✔️ Key Point:
Always remember that Python is case-sensitive, so print() must be written in all lowercase.