Vidyalelo
Python · Q4

MCQs for Python Strings: Exam

Programming · Python · question 4

Q4

Which character is used to access individual elements of a string by index in Python?

A.
. (period)
B.
, (comma)
C.
: (colon)
D.
[ and ] (square brackets)
Answer

Answer: Option D

Solution

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