Vidyalelo
Python · Q16

MCQs for Python Strings: Exam

Programming · Python · question 16

Q16

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

A.
nohtyP
Answer
B.
n
o
h
t
y
P
C.
Python
D.
P
y
t
h
o
n

Answer: Option A

Solution

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