Multiple choice

What is a correct way of printing the "T" in the string "PYTHON"?

  1. Print "PYTHON"[2]

  2. Print "PYTHON"(2)

  3. Print "PYTHON"[3]

  4. Print "PYTHON"(3)

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Python uses zero-based indexing. In the string 'PYTHON', P is at index 0, Y at 1, and T is at index 2.