Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit fc59c18

Browse files
committed
move import statements below headers
1 parent 0cfd307 commit fc59c18

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

book/beyond/nutshell/functions.ipynb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
{
22
"cells": [
3-
{
4-
"cell_type": "code",
5-
"execution_count": 1,
6-
"metadata": {},
7-
"outputs": [],
8-
"source": [
9-
"from math import pi \n",
10-
"import os "
11-
]
12-
},
133
{
144
"attachments": {},
155
"cell_type": "markdown",
@@ -22,6 +12,16 @@
2212
"Here's an example that showcases the difference between lambda functions and normal functions:"
2313
]
2414
},
15+
{
16+
"cell_type": "code",
17+
"execution_count": null,
18+
"metadata": {},
19+
"outputs": [],
20+
"source": [
21+
"from math import pi \n",
22+
"import os "
23+
]
24+
},
2525
{
2626
"cell_type": "code",
2727
"execution_count": 6,

book/beyond/nutshell/strings.ipynb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
22
"cells": [
33
{
4-
"cell_type": "code",
5-
"execution_count": 1,
4+
"attachments": {},
5+
"cell_type": "markdown",
66
"metadata": {},
7-
"outputs": [],
87
"source": [
9-
"from math import pi \n",
10-
"import os "
8+
"# Beyond the Basics: Strings\n",
9+
"In Python, <b><code>strings</code></b> are created using quotes ('' or \"\") and are immutable, while <b><code>f-strings</code></b> are formatted strings that allow embedding expressions inside curly braces { } for dynamic value substitution during runtime. Here is a couple of examples for strings:"
1110
]
1211
},
1312
{
14-
"attachments": {},
15-
"cell_type": "markdown",
13+
"cell_type": "code",
14+
"execution_count": null,
1615
"metadata": {},
16+
"outputs": [],
1717
"source": [
18-
"# Beyond the Basics: Strings\n",
19-
"In Python, <b><code>strings</code></b> are created using quotes ('' or \"\") and are immutable, while <b><code>f-strings</code></b> are formatted strings that allow embedding expressions inside curly braces { } for dynamic value substitution during runtime. Here is a couple of examples for strings:"
18+
"from math import pi \n",
19+
"import os "
2020
]
2121
},
2222
{

0 commit comments

Comments
 (0)