Report Bug
Qus :

What will be the output of the following Python code?

print('xyyzxxyxyy'.lstrip('xyy'))

Qus

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

print('xyyzxxyxyy'.lstrip('xyy'))


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


Solution
B. zxxyxyy



Explanation
The leading characters containing xyy are removed.



Report Bug