MyString = " Hello. "
MyString.strip()
#output >>>>> 'Hello.'
>>> ' Hello '.strip()
'Hello'
string =' abc '
# After removing leading whitespace
print(string.lstrip());
# Output: 'abc '
# After removing trailing whitespace
print(string.rstrip());
# Output: ' abc'
# After removing all whitespace
print(string.strip());
# Output: 'abc'
my_string.strip()
str_1 = " Hire freelance developers "
print(str_1.strip())
#Output = "Hire freelance developers"
print(str_1.rstrip())
#Output = " Hire freelance developers"
print(str_1.lstrip())
#Output = "Hire freelance developers "