Exercises Day 1

The exercises for Day 1 is aimed at getting you started with Python. You can either use a Jupyter notebook to do all the exercises in, or do them in the python interpreter. If you do them in a notebook, start an empty notebook (either from the command line, or click on the Jupyter Notebook icon, depending on what operating system you have) and write your code in the notebook. This way all your code will be saved in the notebook. If you use the python interpreter directly, it will be lost after you close it. You open the Python interpreter by typing python on your command line.

 

Each exercise session will have a few short easy questions, followed below by the answers. Work through as many as you have time with. There is no requirement that you have to finish all of them, the exercises are completely for your own sake.