print("Hello World")
x = 1
y = x + 2
print x, y
import numpy as np
v = np.zeros(3)
M = np.ones((3,4))
A = np.array([[1,2,3],[4,5,6]])
print "v\n", v
print "M\n", M
print "A\n", A
print A
print "the first column of A:", A[:,0]
print "the first row of A:", A[0,:]
x = np.arange(10)
print x
y = np.random.uniform(size=10) # note the named argument here. The 1st (default) arguments are 0 and 1.
y # last element in cell is printed automatically
import matplotlib.pyplot as plt
from IPython.display import HTML
HTML('')
plt.plot(x, y)
plt.title("Sample Plot")
plt.xlabel("x label")
plt.ylabel("y label");
plt.scatter(x, y, s=100) # press TAB after opening parenthesis to see help on `scatter`;
from IPython.display import HTML
HTML('')