Vidyalelo
Python · Q81

MCQs for Python Strings: Exam

Programming · Python · question 81

Q81

What will be the output of the following Python code? >>> str1 = 'hello' >>> str2 = ',' >>> str3 = 'world' >>> str1[-1:]

A.
olleh
B.
hello
C.
h
D.
o
Answer

Answer: Option D

Solution

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