Skip to content

Commit 1409ba8

Browse files
committed
Minor fixes
1 parent 4bc0a78 commit 1409ba8

File tree

5 files changed

+16
-18
lines changed

5 files changed

+16
-18
lines changed

notebooks/beginner/notebooks/07_functions.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
" print(\"Hello world!\")\n",
1818
"\n",
1919
"\n",
20-
"print(f\"type: {my_first_function}\")\n",
20+
"print(f\"type: {type(my_first_function)}\")\n",
2121
"\n",
2222
"my_first_function() # Calling a function"
2323
]
@@ -240,7 +240,7 @@
240240
],
241241
"metadata": {
242242
"kernelspec": {
243-
"display_name": "Python 3",
243+
"display_name": "Python 3 (ipykernel)",
244244
"language": "python",
245245
"name": "python3"
246246
},
@@ -254,7 +254,7 @@
254254
"name": "python",
255255
"nbconvert_exporter": "python",
256256
"pygments_lexer": "ipython3",
257-
"version": "3.5.4"
257+
"version": "3.11.0"
258258
}
259259
},
260260
"nbformat": 4,

notebooks/beginner/notebooks/10_file_io.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
],
139139
"metadata": {
140140
"kernelspec": {
141-
"display_name": "Python 3",
141+
"display_name": "Python 3 (ipykernel)",
142142
"language": "python",
143143
"name": "python3"
144144
},
@@ -152,7 +152,7 @@
152152
"name": "python",
153153
"nbconvert_exporter": "python",
154154
"pygments_lexer": "ipython3",
155-
"version": "3.5.4"
155+
"version": "3.11.0"
156156
}
157157
},
158158
"nbformat": 4,

notebooks/beginner/notebooks/11_classes.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,7 @@
152152
" self.instance_variable = var1\n",
153153
"\n",
154154
" def show_info(self):\n",
155-
" info = \"instance_variable: {}, name: {}, description: {}\".format(\n",
156-
" self.instance_variable, Example.name, Example.description\n",
157-
" )\n",
155+
" info = f\"instance_variable: {self.instance_variable}, name: {Example.name}, description: {Example.description}\"\n",
158156
" print(info)\n",
159157
"\n",
160158
"\n",
@@ -323,7 +321,7 @@
323321
"name": "python",
324322
"nbconvert_exporter": "python",
325323
"pygments_lexer": "ipython3",
326-
"version": "3.10.3"
324+
"version": "3.11.0"
327325
}
328326
},
329327
"nbformat": 4,

notebooks/beginner/notebooks/12_exceptions.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,23 +144,23 @@
144144
],
145145
"metadata": {
146146
"kernelspec": {
147-
"display_name": "Python 3",
147+
"display_name": "Python 3 (ipykernel)",
148148
"language": "python",
149149
"name": "python3"
150150
},
151151
"language_info": {
152152
"codemirror_mode": {
153153
"name": "ipython",
154-
"version": 3.0
154+
"version": 3
155155
},
156156
"file_extension": ".py",
157157
"mimetype": "text/x-python",
158158
"name": "python",
159159
"nbconvert_exporter": "python",
160160
"pygments_lexer": "ipython3",
161-
"version": "3.5.4"
161+
"version": "3.11.0"
162162
}
163163
},
164164
"nbformat": 4,
165-
"nbformat_minor": 0
165+
"nbformat_minor": 1
166166
}

notebooks/beginner/notebooks/13_modules_and_packages.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@
6262
"```python\n",
6363
"\n",
6464
"def get_available_brands():\n",
65-
" return ['chiquita']\n",
65+
" return [\"chiquita\"]\n",
6666
"\n",
6767
"\n",
6868
"class Banana:\n",
69-
" def __init__(self, brand='chiquita'):\n",
69+
" def __init__(self, brand=\"chiquita\"):\n",
7070
" if brand not in get_available_brands():\n",
71-
" raise ValueError('Unkown brand: {}'.format(brand))\n",
71+
" raise ValueError(f\"Unknown brand: {brand}\")\n",
7272
" self._brand = brand\n",
7373
" \n",
7474
"```"
@@ -112,7 +112,7 @@
112112
],
113113
"metadata": {
114114
"kernelspec": {
115-
"display_name": "Python 3",
115+
"display_name": "Python 3 (ipykernel)",
116116
"language": "python",
117117
"name": "python3"
118118
},
@@ -126,7 +126,7 @@
126126
"name": "python",
127127
"nbconvert_exporter": "python",
128128
"pygments_lexer": "ipython3",
129-
"version": "3.5.4"
129+
"version": "3.11.0"
130130
}
131131
},
132132
"nbformat": 4,

0 commit comments

Comments
 (0)