The Python Oracle

How can I check the extension of a file?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 5

--

Chapters
00:00 Question
00:24 Accepted answer (Score 574)
00:46 Answer 2 (Score 72)
01:32 Answer 3 (Score 66)
02:04 Answer 4 (Score 20)
02:20 Thank you

--

Full question
https://stackoverflow.com/questions/5899...

Answer 1 links:
[docs]: http://docs.python.org/library/os.path.h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #fileextension

#avk47