Articles → Python → Strip function in python

Strip function in python






Purpose





Example


message = "    this is the test message    "

print("Message before striping:",message)

print("Message after striping:",message.strip())



Output



Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Thursday, May 16, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250