MODERN way to extract file extension in Python 🐍

Published: 23 January 2023
on channel: ModernPython
200
14

In this quick video, I'll show you the MODERN way to extract file extensions in Python regardless of the operating system.

Use pathlib's Path object. After inserting the filename, use the property suffix to get the extension.


Watch video MODERN way to extract file extension in Python 🐍 online without registration, duration hours minute second in high quality. This video was added by user ModernPython 23 January 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 200 once and liked it 14 people.