Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started