Example & Tutorial understanding programming in easy ways.

What is rstrip() in Python?

rstrip() is used in string  for removing the white space from the right side of the string.

Example:

s="Hello world    "

len(s)  // 14

s=s.rstrip()

len(s) // 11

Read More →