>>14
from pathlib import Path

p = Path('.')

for file in p.iterdir():
ext = ''.join(file.suffixes)
without_ext = file.name.rstrip(ext)