online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
import numpy as np arr1 = np.array([1, 2, 3, 4, 5]) print("Array 1:\n", arr1) print("ndim:", arr1.ndim) # Number of dimensions print("shape:", arr1.shape) # Shape of array print("size:", arr1.size) # Total number of elements print("dtype:", arr1.dtype) # Data type of elements print() arr2 = np.array([[10, 20, 30], [40, 50, 60]]) print("Array 2:\n", arr2) print("ndim:", arr2.ndim) print("shape:", arr2.shape) print("size:", arr2.size) print("dtype:", arr2.dtype) print() arr3 = np.array([ [[1, 2], [3, 4]], [[5, 6], [7, 8]] ]) print("Array 3:\n", arr3) print("ndim:", arr3.ndim) print("shape:", arr3.shape) print("size:", arr3.size) print("dtype:", arr3.dtype)

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue