Question: Python file naming question? I'm having a user enter the name of the file they want to open. Then, I'm supposed to write the lines

Python file naming question?

I'm having a user enter the name of the file they want to open. Then, I'm supposed to write the lines of that file into an output file that is named the same thing, but with "ln_" preceding it. So, if the user enters "scores.txt", then the outputfile should be named "ln_scores.txt". How do I go about opening the output file with the correct name if I don't know what the user will enter?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!