removing_characters.md
April 9, 2022 ยท View on GitHub
Removing Characters
- How to remove a trailing slash ('/') from a string?
- How to remove the first character from a string?
Solution
string.rstrip('/')
April 9, 2022 ยท View on GitHub
string.rstrip('/')