Question : #remove leading and trailing spaces
Answered by : impossible-impala-2kf2sz6ngusb
#Remove leading and trailing spaces
S1 = ' Python rocks '
print(S1)
print(S1.strip())
print(S1.lstrip())
print(S1.rstrip())
Source : | Last Update : Mon, 09 May 22