I’m working on a certain program where I need to do different things depending on the extension of the file. Could I just use this?

if m == *.mp3
   ...
elif m == *.flac
   ...

13 Answers
13

Leave a Reply

Your email address will not be published. Required fields are marked *