filename = input("input the filename: ")
f_extns = filename.spilt(".")
print ("the extension of the file is :"+ repr(f_extns[-1]))

filename = input("input the filename: ")
f_extns = filename.spilt(".")
print ("the extension of the file is :"+ repr(f_extns[-1]))
