Standard LibraryTypesstringMethodstrim_endOn this pagetrim_end Method of string. trim_end() -> string Trims the end of the given string.