give file as input in python code example
Example: allow user to input text and create a file with that name in python
filename = input("Input the Filename: ")
f_extns = filename.split(".")
print ("The extension of the file is : " + repr(f_extns[-1]))