Commit fb4d7619 authored by Holger Dinkel's avatar Holger Dinkel

add simple warmup exercise for 4_NestedDataStructures

parent 41f9513a
......@@ -28,6 +28,48 @@
"One other key to writing effective programs is the ability to encapsulate your data and allow them to be accessed and analysed in a way that is efficient and appropriate. If you don't take the time to consider the best way to capture, store, and access your data, you can end up writing programs that are much more complicated and error-prone than they need to be. This can cost you a lot more time in the future. As with any project, a little time spent planning at the beginning can save a lot of time later on."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### _Warmup exercise_"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Imagine, you woke up this morning and you had several ideas for things you want to do today, each can be described by a word or a short sentence. You want to write down those ideas (store them in python), which data type is in your opinion best suited to host all of that data?\n",
"- an integer\n",
"- a string\n",
"- a list\n",
"- a group\n",
"- a dictionary\n",
"- other"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"[write down answer]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"After compiling your collection of all the things you want to get done today, you realized that they can and should be categorized into different projects like 'work', 'home' etc.\n",
"Given your response to the question above, how would you store your data into multiple levels?"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"[write down answer]"
]
},
{
"cell_type": "markdown",
"metadata": {},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment