Two Array Comparison

Report a typo

The input consists of four lines, with each line containing a single element. Use these elements to create two arrays: the first two elements for the first array, and the next two elements for the second array. For example, [6, 7] and [9, 0].

Then, compare whether each element of the first array is less than the corresponding element of the second array. Print the resulting Boolean array.

Sample Input 1:

6
7
9
0

Sample Output 1:

[ True False]
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