removing_characters.md

April 9, 2022 ยท View on GitHub

Removing Characters

  1. How to remove a trailing slash ('/') from a string?
  2. How to remove the first character from a string?

Solution

  1. string.rstrip('/')