Answers for "allow user to input text and create a file with that name in python"

0

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]))
Posted by: Guest on November-16-2020

Code answers related to "allow user to input text and create a file with that name in python"

Python Answers by Framework

Browse Popular Code Answers by Language