for i in range(10):
    print(i)
0
1
2
3
4
5
6
7
8
9
import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(1,10,10)

print(x)
y = []

for i in range(10):
    y.append(x[i]*2)
    
print(y)

plt.plot(x,y)
plt.show()

I like to say hello to people

HELLO

import numpy as np

def MatMultScalar(x,i):
    h = np.zeros(len(x))
    for k in range(len(x)):
        h[k] = x[k]*i
    return x


x = [1,2,3,4,5]
y = np.linspace(1,5,5)

print(x)
print(y)

print(type(x))
print(type(y))

print(x*2)
print(y*2)

for i in range(len(x)):
    x[i] = x[i]*2
    
print(x)

f = [1,2,3,4,5,6]
print(f)

g = MatMultScalar(f,3)

print(f)
print(g)
[1, 2, 3, 4, 5]
[ 1.  2.  3.  4.  5.]
<class 'list'>
<class 'numpy.ndarray'>
[1, 2, 3, 4, 5, 1, 2, 3, 4, 5]
[  2.   4.   6.   8.  10.]
[2, 4, 6, 8, 10]
[1, 2, 3, 4, 5, 6]
[3, 6, 9, 12, 15, 18]
[3, 6, 9, 12, 15, 18]
 
array([ 0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.])