Strip tabs : Lstrip : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Lstrip »

 

Strip tabs


import string


badSentence = "ttThis sentence has problems.   "

print "nBad:n" + badSentence
print "nFixed:n" + badSentence.lstrip('t')



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo String
» Lstrip