# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 2
#     language: python
#     name: python2
# ---

import numpy as np

numpy

lst = [[1,2,3],
       [4,5,6],
       [7,8,9]]

lst

type(lst)

arr = numpy.array(lst)

type(arr)

zeros = numpy.zeros((20,10), dtype = int)

zeros.shape

ones = numpy.ones((20,10), dtype = int)

numpy.random.random((3,3))

numpy.linspace(1,10,10)

for i in range(10):
    print(numpy.random.randint(1,10))

numpy.random.randint(1,10,(10,10))

np.random.randint(1,10)



StarcoderdataJupyterScriptsDedupFiltered