Answered step by step
Verified Expert Solution
Link Copied!

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:image text in transcribed
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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

How is the NDAA used to shape defense policies indirectly?

Answered: 1 week ago