Selecting values

Report a typo

The input consists of four lines, with each line containing a single element. Use these four elements to create an array. Then select the elements that are greater than or equal to 45. Print the resulting array.

Tip: Don't forget to use np.where().

Sample Input 1:

3
56
9
54

Sample Output 1:

[56 54]
Write a program in Python 3
import numpy as np

a = int(input())
b = int(input())
c = int(input())
d = int(input())
___

Create a free account to access the full topic