Skip to content

Commit b0220ef

Browse files
committed
fix: title formatting
1 parent fb9c33a commit b0220ef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

advanced-python/12AdvancedClasses.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"cell_type": "markdown",
7575
"metadata": {},
7676
"source": [
77-
"## len\n",
77+
"### len\n",
7878
"\n",
7979
"The `len` method simply checks if there is a `__len__` implemented."
8080
]
@@ -83,7 +83,7 @@
8383
"cell_type": "markdown",
8484
"metadata": {},
8585
"source": [
86-
"## str\n",
86+
"### str\n",
8787
"\n",
8888
"To have a nice, representable, human readable string, `__str__` should be implemented. There is a similar one, which is `__repr__`. This is also a string representation of the object, yet more targeted towards the developers.\n",
8989
"\n",
@@ -126,7 +126,7 @@
126126
"cell_type": "markdown",
127127
"metadata": {},
128128
"source": [
129-
"## Callable\n",
129+
"### Callable\n",
130130
"\n",
131131
"In Python, a callable is any object that can be called. Calling an object means to have `(...)` attached behind it. This operator looks for a `__call__` method."
132132
]
@@ -188,7 +188,7 @@
188188
"cell_type": "markdown",
189189
"metadata": {},
190190
"source": [
191-
"## Indexing (iterating)\n",
191+
"### Indexing (iterating)\n",
192192
"\n",
193193
"There are a few methods when it comes down to iteration. However, we won't go into these details but rather look at the normal indexing. That is controlled via `__getitem__` and `__setitem__` and invoked with the `[]` operator."
194194
]
@@ -308,7 +308,7 @@
308308
"cell_type": "markdown",
309309
"metadata": {},
310310
"source": [
311-
"# Danger zone\n",
311+
"## Danger zone\n",
312312
"\n",
313313
"The following is only for fun and should _not_ be used in real live, except you do _really_ know what you're doing and at least two independent colleagues agree that this is the right way to go"
314314
]

0 commit comments

Comments
 (0)