What is the output of print('xxhello'.lstrip('x')) in Python?
print('xxhello'.lstrip('x'))
Correct answer
A. hello
A. hello
lstrip with arguments removes characters from the left only.
Asked in: Python Interview Strings
https://docs.python.org/3/library/stdtypes.html#string-methodsNot sure why the answer is A? Ask here and get an explanation.