Python string removesuffix() method
Python String removesuffix() Method Description The removesuffix() method was introduced in Python 3.9. It removes the specified substring from the end of a string and returns the remaining string. Syntax var.removesuffix(suffix) Parameters suffix − The string to be removed from…