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
Posted By - | Karan Gupta |
|
Posted On - | Thursday, May 16, 2019 |