NumPy Online Compiler (Editor)
NumPy (Python) Editor
With our "Try it Yourself" editor, you can edit Python code and use the NumPy module, and view the result in your browser.
import numpy as np arr = np.array([1, 2, 3, 4, 5]) print(arr) print(type(arr))
[1 2 3 4 5]
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
Click on the "Try it Yourself" button to see how it works.
Build and Publish NumPy Projects
If you want to create your own website or build Python applications, W3Schools Spaces gives you an easy place to write, run, manage, and publish code online.
If you don't know Python, we suggest that you read our Python Tutorial from scratch.