Vidyalelo
Python · Q8

MCQs for Python Strings: Exam

Programming · Python · question 8

Q8

What is the output of the code:string = "Python"print(string[-2])

A.
o
Answer
B.
t
C.
h
D.
n

Answer: Option A

Solution

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