Cultural Data Analysis · Week 1: Python
Practise the Python from the lecture in a notebook: working with the notebook environment, lists and arrays, sequential and event-driven programs, and a first real-life dataset.
First: save your own copy. Unless the notebook is already in your own Google Drive, Colab does not keep your changes. Go to File → Save a copy in Drive and work in the copy that opens in a new tab. You find it later in Google Drive, in Colab Notebooks.
#Keep cell are ready to run; in the other exercise cells you write the code yourself.q1.check() (and so on) to check your answer. q1.hint() gives a hint and q1.solution() the solution: try first.The code-along for this week's lecture: Python Tutor exercises.