Computer Science Homework Help

The following code in python will store 20 random numbers from 1 to 100 in the list x. import numpy as npx = np.random.randint(1,100,20) Write a for loop that iterates through all the numbers in the l

The following code in python will store 20 random numbers from 1 to 100 in the list x.

Get Your Custom Essay Written From Scratch
We have worked on a similar problem. If you need help click order now button and submit your assignment instructions.
Just from $13/Page
Order Now

import numpy as npx = np.random.randint(1,100,20)

Write a for loop that iterates through all the numbers in the list x and prints the numbers that are even. (hint: Note that when you divide an even number by 2, the reminder is always 0)

You may refer to any resource on the internet or any book to solve the problem. You may not however ask help from any other individual.

What to submit: Download your ipynb file with the solution and submit it on canvas.