In python lists copies the elements twice and power is not applicable but for numpy arrays we can directly use the power function a*2 means multiply each element by 2 a**2 means square of each term on the array
import matplotlib.pyplot as plt plt.scatter(x,y) plt.title(“Web traffic over the last month”) plt.xlabel(“Time”) plt.ylabel(“Hits/hour”) plt.xticks([w*7*24 for w in range(10)], [‘week %i’%w for w in range(10)]) plt.autoscale(tight=True) plt.grid() plt.show()