Computer Science

Which functions would you choose to use to remove leading and trailing white spaces from a given string?

Python String Manipulation

23 Likes

Answer

lstrip() removes leading white-spaces, rstrip() removes trailing white-spaces and strip() removes leading and trailing white-spaces from a given string.

Answered By

16 Likes


Related Questions