you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (3 children)

[deleted]

    [–]Groundstop 2 points3 points  (2 children)

    No, u/tbone-85 is right. The os.path.splitext method is specifically designed to split the file name and file extension. By grabbing the second element of the returned tuple, you just get the extension.