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])