Vidyalelo
Python · Q120

MCQs for Python Strings: Exam

Programming · Python · question 120

Q120

To retrieve the character at index 3 from string s="Hello" what command do we execute (multiple answers allowed)?

A.
s[]
B.
s.getitem(3)
C.
s.__getitem__(3)
Answer
D.
None of the above

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board