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" 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
Get step-by-step solutions from verified subject matter experts
