Question: Coding Exercise: Skipping Extend the Looping through all lines of input example above (we've copied it for you) by adding a new feature: any line

 Coding Exercise: Skipping Extend the "Looping through all lines of input"

Coding Exercise: Skipping Extend the "Looping through all lines of input" example above (we've copied it for you) by adding a new feature: any line equal to SKIP should not be printed, and should not cause the counter to be increased. Run the program to see an example. Hint 1 counter = 0 2 while True: lineIn = input() if lineIn == 'END': break counter = counter+1 print('line', counter, '=', lineIn vawn Enter test input Open in console Visualize Run program More actions

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!