forma simple de encontrar la extensión de archivos Programación de Python
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])
Programmer of empires