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


Picture showing the output of Strip function in python



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

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250