🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.It prints Hi, because Python ignores case
  2. B.It prints Print("Hi")
  3. C.SyntaxError
  4. 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 →