cara sederhana untuk menemukan ekstensi file pemrograman 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