HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Glossary
  2. /Python and data
  3. /NumPy Array

What is NumPy Array?

In short

A NumPy array is a grid of numbers of the same type that lets you do arithmetic on all of its elements at once. You can make one from a list with np.array.

In simple words

Convert a list with a = np.array([1, 2, 3]) and back with a.tolist(). Operations such as a * 2 or np.sin(a) act on every element, without a loop. Arrays can have many dimensions: np.array([[1, 2], [3, 4]]) is a 2×22 \times 22×2 array, and A.T is its transpose. Arrays are much faster than lists for large amounts of numbers.

Example

This prints [0. 4.9 19.6], the distances fallen in metres.

Also searched as: list to numpy array, python list to ndarray, np array from list, python to array, numpy array from list, python list to array, a.t[0,1].

Learn it properly

  • Lessons on this topic
  • Test yourself

Related terms

  • List (in Python)
  • For Loop

← All glossary terms

Learn it in

  1. NumPy ArraysClass 11 to 12
All lessons on this topic →

Practise

  1. A ball is thrown horizontally at 15 m/s from a roof that is 20 m high…Hard
  2. A ball is thrown at 20 m/s on the Moon, where g = 1.6 m/s²…Medium
  3. A student measures the length of a rod five times: 10.2, 10.4, 10.1, 10.3 and 10.5 cm…Hard
  4. Four players played three games. The scores are the rows of this table: [[12, 15, 9]…Medium

Quick questions

  1. Limits on every value: what does print(np.clip(np.array([-5, 3, 12]), 0, 10)) show?Medium
  2. t = np.array([[1, 2, 3], [4, 5, 6]]). What is t.shape?Easy
  3. One number from many: what is the mean that print(np.array([1, 2, 3]).mean()) shows?Easy

More Python and data terms

  1. Cell (in a Python notebook)
  2. Class and Special Methods (in Python)
  3. Dictionary (in Python)
  4. Function (in Python)
  5. If Statement (in Python)
  6. Import (Python modules and libraries)
All Python and data terms →

Try it yourself

Python labs run in your browser. Type the code, run it and see what happens.

Open a Python lab