Vidyalelo
Python · Q31

MCQs for Python Data Types and Numeric Types Chapter

Programming · Python · question 31

Q31

What will be the output of the following Python code? >>>str="hello" >>>str[:2] >>>

A.
he
Answer
B.
lo
C.
olleh
D.
hello

Answer: Option A

Solution

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