{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Lesson 1 exercises"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Exercise 1.1\n",
"\n",
"Describe in words the difference between a mutable and immutable object.\n",
"\n",
"
"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Exercise 1.2\n",
"\n",
"**a)** Describe in words the difference between the `==` operator and the `is` operator.\n",
"\n",
"**b)** Why should you not use the `==` operator to compare two `float`s?\n",
"\n",
"
"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Exercise 1.3\n",
"\n",
"*Do this before Exercise 1.4.* Without running the code, write what will be printed for the following Python codes.\n",
"\n",
"**a)**\n",
"```python\n",
"my_list = [1, 2, 3]\n",
"my_list[2] = \"four\"\n",
"\n",
"print(my_list)\n",
"```\n",
"\n",
"