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

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

Subject:Computer SciencePrice: Bought3

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 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.

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Related Questions