Python Program to Trim Whitespace From a String ( Using strip())

bookmark

my_string = " Python "

print(my_string.strip())

 

Output

Python