Open this example in the interactive library
Source code
from pathlib import PurePath
print(PurePath('archive.tar.gz').suffixes)Sample output
['.tar', '.gz']

Open this example in the interactive library
from pathlib import PurePath
print(PurePath('archive.tar.gz').suffixes)['.tar', '.gz']