Question: The output should look like this Python. Please explain what your code does. 7. Take in integers until the user types QUIT and store the
The output should look like this
Python. Please explain what your code does.
7. Take in integers until the user types "QUIT" and store the numbers in an array. Assume any input other than "QUIT" is a valid integer. Create another array of just the even numbers and print it. Enter a number or QUIT to quit: 4 Enter a number or QUIT to quit: 5 Enter a number or QUIT to quit: 8 Enter a number or QUIT to quit: 7 Enter a number or QUIT to quit: 6 Enter a number or QUIT to quit: 3 Enter a number or QUIT to quit: 2 Enter a number or QUIT to quit: 9 Enter a number or QUIT to quit: QUIT [4, 8, 6, 2]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
