Code python pour supprimer l'extension du fichier

import os
print os.path.splitext("sample.txt")[0]
Healthy Hawk