Python : Sequence data types in python

lstrip () फंक्शन का उपयोग इसके लिए किया जाता है: , lstrip() method is used for :

lstrip () फंक्शन का उपयोग इसके लिए किया जाता है:

lstrip() method is used for :
A. delete all the trailing whitespace characters

B. delete all the leading whitespace characters
(delete all the leading whitespace characters)

C. delete all the leading and trailing whitespace characters

D. delete upper case characters



Correct Answer :

B. delete all the leading whitespace characters



Explanation

The lstrip() method in Python is used to remove leading (leftmost) whitespace characters from a string. Whitespace characters include spaces, tabs, and newline characters. This method does not modify the original string but returns a new string with the leading whitespace removed.

Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test , CCC MCQ Python Coding Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Website development Company in Allahabad