Is NumPy is better than Python list?

Recommended Answers

All 3 Replies

When I select a tool, I have to consider the job at hand. A hammer one time, the blowtorch the next time.

Better for what?

NumPy, a Python package, has made its place in the world of scientific computing. It can deal with large data sizes, and also has a powerful N-dimensional array object along with a set of advanced functions.

Yes, a NumPy array is better than a Python list. This is in the following ways:

1.It is more compact.
2.It is more convenient.
3.It Is more efficiently.
4.It is easier to read and write items with NumPy.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.