## Program to trim both trailing and leading white space char from given string

string = input("Enter a string: ")
print("Output after trimming both trailing and leading white spaces is: ")
print(string.strip(" "))
77f9abc1eb61e38901e9a0974d42736e06453202
<mask token>

<mask token>
print('Output after trimming both trailing and leading white spaces is: ')
print(string.strip(' '))

string = input('Enter a string: ')
print('Output after trimming both trailing and leading white spaces is: ')
print(string.strip(' '))

## Program to trim both trailing and leading white space char from given string

string = input("Enter a string: ")
print("Output after trimming both trailing and leading white spaces is: ")
print(string.strip(" "))