Vidyalelo
Python · Q152

MCQs for Python Strings: Exam

Programming · Python · question 152

Q152

What will be the output of the following Python code? print('xyyzxxyxyy'.lstrip('xyy'))

A.
error
B.
zxxyxyy
Answer
C.
z
D.
zxxy

Answer: Option B

Solution

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