Streamline previous content
This commit is contained in:
parent
fe13817605
commit
ca8fefdce1
13 changed files with 5091 additions and 3409 deletions
|
|
@ -110,7 +110,7 @@
|
|||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"**Q6**: What does the `finally`-branch enforce in this code snippet? How can a `try` statement be useful *without* an `except`-branch?"
|
||||
"**Q6**: What does the `finally`-clause enforce in this code snippet? How can a `try` statement be useful *without* an `except`-clause?"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -210,22 +210,8 @@
|
|||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\n"
|
||||
"def discounted_price(...):\n",
|
||||
" ..."
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -279,7 +265,7 @@
|
|||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"**Q9.3**: Re-calculate the last two line items with order quantities of $20$ and $15$. What do you observe?"
|
||||
"**Q9.3**: Calculate the last two line items with order quantities of $20$ and $15$. What do you observe?"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -304,7 +290,7 @@
|
|||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
" (your observation)"
|
||||
" "
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -373,12 +359,6 @@
|
|||
"outputs": [],
|
||||
"source": [
|
||||
"for number in numbers:\n",
|
||||
" ...\n",
|
||||
" ...\n",
|
||||
" ...\n",
|
||||
" ...\n",
|
||||
" ...\n",
|
||||
" ...\n",
|
||||
" ..."
|
||||
]
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue