Remove Leading And Trailing Spaces

[Solved] Remove Leading And Trailing Spaces | Swift - Code Explorer | yomemimo.com
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

Answers related to remove leading and trailing spaces

Code Explorer Popular Question For Swift