Python Programs | IT Developer
IT Developer

Python Programs



Share with a Friend

Python Programs - String

Remove leading and trailing spaces - Python Program

Example 1 :

text = " Hello World " print(text.strip())

Output

 
OUTPUT  :
Hello World