My name is Shaochen Tan
My usc e-mail address is tanshaoc@usc.com
Download the file lab1.py at first, and you can run the file through followling methods:
Method 1 move it to your working directory of jupyter notebook and run the code '%run lab1.py' in your notebook.
Method 2 open the Command Prompt and use 'python [location of the directory where you put lab1.py]\lab1.py'