{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Lesson 2 exercises"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Exercise 2.1\n",
"\n",
"What are the advantages of making a package with the proper architecture and using `pip`/`setuputils` to install it versus just having a `.py` file in your working directory?\n",
"\n",
"
"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Exercise 2.2\n",
"\n",
"What is the difference between a key and a value in a dictionary?\n",
"\n",
"
"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Exercise 2.3\n",
"\n",
"Can a dictionary have duplicate keys? Can it have duplicate values?\n",
"\n",
"
"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Exercise 2.4\n",
"\n",
"What bad things could happen accidentally if you open files without using context management?\n",
"\n",
"
"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.4"
}
},
"nbformat": 4,
"nbformat_minor": 4
}