I have a text file named doc123.txt, I want to create files named sub_doc123.txt. The file doc_123.txt is an input for a function.
Thanks in advance!
Edit: Sorry if this is basic and I am unable to see the quick solution. Essentially:
You dont need a function for this. Following code will do.
inp = raw_input("Enter name of doc") outName = 'sub_' + inp