Let’s check out some exercises that will help understand .strip() method better.
Use strip method to strip the whitespaces on both sides of the string.
Using .strip() method, strip the string so that, only "Babylon" remains.
Let's say you created a program that crawls websites online and it returned a string with a bunch of unnecessary characters on the right side. Using .rstrip() method, strip the characters from the right side of the string only so, in the end you get: "@Bloomberg"