Format de fichier de vérification Python

# Assuming m is a string, you can use endswith:
if m.endswith('.mp3'):
...
elif m.endswith('.flac'):
...
Glamorous Gharial