python remove suffix

Solutions on MaxInterview for python remove suffix by the best coders in the world

showing results for - "python remove suffix"
Mattia
16 Apr 2020
1>>> 'MiscTests'.removesuffix('Tests')
2'Misc'
3>>> 'TmpDirMixin'.removesuffix('Tests')
4'TmpDirMixin'