trim white spaces in python code example
Example 1: python trim whitespace from end of string
>>> " xyz ".rstrip()
' xyz'
Example 2: strip whitespace python
>>> s.strip()
'Hello World From Pankaj \t\n\r\tHi There'
>>> " xyz ".rstrip()
' xyz'
>>> s.strip()
'Hello World From Pankaj \t\n\r\tHi There'