Answered step by step
Verified Expert Solution
Question
1 Approved Answer
First part of the task: Standard input consists of exactly two lines of text. Write a Python script named even-length-lines.py which writes each line which
First part of the task: Standard input consists of exactly two lines of text.
Write a Python script named even-length-lines.py which writes each line which is of an even length to standard output.
(So, depending upon the input lines, the output might contain both lines, either line, or neither line.)
Example standard input 1
Nobody expects the Spanish Inquisition!
Example standard output 1
Nobody expects the Spanish Inquisition! The second part of the task which i have problem solving:Ten even length lines Task Repeat the previous task. This time, instead of just two lines of input, there are ten lines of input (and up to ten lines of output). Name your script ten-even-length-lines.py . A good solution will use exactly one variable name
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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