Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In Python Write a program that read from an input file, and wite to an output file. The contents of this output file should be
In Python Write a program that read from an input file, and wite to an output file. The contents of this output file should be ONLY the even characters on all of the input file's odd lines to the output file. If that works and makes sense, now add code to write all of the odd characters on all of the input file's eren lines to the output file. "Note: odd and even lines in the input file are also going to be odd and even lines in the output file, respectively. (see below) The contents of this input file should be: 1212121212121212121212121212121212 3434343434343434343434343434343434 5656565656565656565656565656565656 7878787878787878878787878787878787 9090909090909090909090909090909090 In Python create a .txt file with the following contents HelloWorldHelloWorldHelloWorldHelloWorld GoodnightMoonGoodnightMoonGoodnightMoon HelloWorldHelloWorldHelloWorldHelloWorld GoodnightMoonGoodnightMoonGoodnightMoon Write a program that accepts a file name is an input, opens said file, and processes input. You will wite the results to an output file. For processing, count the number of upper case letters on each line and write that number to the output file along with the line number that is associated with that number, 1.e. Line #2 has 6 uppercase letters
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