Python Strip Exercises
Let’s check out some exercises that will help understand .strip() method better.
Exercise 4-a: Strip method to remove whitespace on both sides
Use strip method to strip the whitespaces on both sides of the string.
Exercise 4-b: Strip method to remove specific characters from a string
Using .strip() method, strip the string so that, only "Babylon" remains.