text_plain_output_1.png
import numpy as np

import numpy as np

x = 3

xs = [3, 1, 2]

xs.append('bar')

x = xs.pop()

d = {'cat': 'cute', 'dog': 'furry'}

del d['fish']

d = {'person': 2, 'cat': 4, 'spider': 8}
for animal in d:
    legs = d[animal]

d = {'person': 2, 'cat': 4, 'spider': 8}

d = {(x, x + 1): x for x in range(10)}
t = (5, 6)

a = np.array([1, 2, 3])
a[0] = 5

b = np.array([[1, 2, 3], [4, 5, 6]])

a = np.zeros((2, 2))

b = np.ones((1, 2))

c = np.full((2, 2), 7)

d = np.eye(2)

e = np.random.random((2, 2))

import numpy as np
a = np.array([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]])
b = a[:2, 1:3]

print(a[0, 1])
b[0, 0] = 77
print(a[0, 1])