Answers for "get a file extension python"

2

python get file extension from path

import os.path
extension = os.path.splitext(filename)[1]
Posted by: Guest on May-08-2020
1

simple way of finding file extension python programming

file = input("Which file did you opend last time user:- ")
extenction = file.split(".")
print("humm so last time you opened file extenction was .",extenction[1])
Posted by: Guest on July-26-2021

Code answers related to "get a file extension python"

Python Answers by Framework

Browse Popular Code Answers by Language