Buy Me a Coffee☕

*Memo:



My post explains string, bytes and bytearray functions.


str.removesuffix() and bytes.removesuffix() or bytearray.removesuffix() can remove the suffix of the string and bytes or bytearray respectively as shown below:

*Memo:


The 1st argument is suffix(Required-Type:str for str.removesuffix() or Bytes-like object for...