Простой способ поиска программирования Python расширения файлов 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