+1 vote
import numpy as np
a=[]
for i in range(0,6):
ele=int(input())
a.append(ele)
b=np.array(a)
f=np.split(b,2)
print(f)

I need to compare the two arrays now.

How do I proceed further? Dec 7, 2019 in Python 251 views

## 1 answer to this question.

+1 vote

Hey, You can use

```np.greater(b, f)
np.greater_equal(b, f)
np.less(b, f)
np.less_equal(b, f)``` answered Dec 9, 2019 by Payal

0 votes
1 answer

## how do I check the length of an array in a python program?

lets say we have a list mylist = ...READ MORE

0 votes
1 answer

## How do I obtain the index list in a NumPy Array of all the NaN values present using Python?

Hi, it is pretty simple, to be ...READ MORE

0 votes
1 answer

## I have to build a pareto frontier on the movielens data set using NSGA-II algorithm. Can anyone help me out how to do it and what inputs to be given?

You can find the explanation and implementation ...READ MORE

0 votes
1 answer

## How do I convert type of an array in python?

Use the following command to change the ...READ MORE

0 votes
2 answers

## how can i randomly select items from a list?

You can also use the random library's ...READ MORE

+1 vote
2 answers

## how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

0 votes
0 answers

## how do i use the enumerate function inside a list?

can you give an example using a ...READ MORE

+5 votes
6 answers

## Lowercase in Python

You can simply the built-in function in ...READ MORE

+1 vote
1 answer

## how do i get a optimal cutoff value(directly in the form of numeric) from roc curves?

The optimal CutOff value is the point ...READ MORE

+1 vote
1 answer

## I am trying to write a program in python for the occurrences of a character given the start and stop values of that string only using while

Here's the code: check = input("Enter the character: ...READ MORE