← Quiz: Python Introduction: all 15 questions
Quiz: Python Introduction · Question 14 of 15
What happens when you run Print("Hi") with a capital P?
What happens when you run Print("Hi") with a capital P?
- A.It prints Hi, because Python ignores case
- B.It prints Print("Hi")
- C.SyntaxError
- D.NameError, because Python is case-sensitive and Print is not defined
Answer & explanation
Correct answer: NameError, because Python is case-sensitive and Print is not defined
print and Print are different names; only the lowercase one exists.
Can you get the rest right without peeking?
Take the timed Quiz: Python Introduction quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →