Ipython Code For Week6