Skip to content

Commit

Permalink
Minor edit to fix linting failure
Browse files Browse the repository at this point in the history
  • Loading branch information
davewhipp committed Sep 24, 2024
1 parent 54ca295 commit 2576300
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions source/part1/chapter-02/md/05-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,10 +436,10 @@ Perhaps the most valuable thing about adding the docstring is that it provides a
help(kelvins_to_celsius)
```

or by typing the name of the function followed by `?`.
or by typing `?` before or after the name of the function.

```python
kelvins_to_celsius?
?kelvins_to_celsius
```

As you can see, we now have easy access to information about the function that has been included in the docstring. This means you can remind yourself about how functions you have written work, or look up information about functions from libraries, as discussed later in this chapter.
Expand Down
6 changes: 3 additions & 3 deletions source/part1/chapter-02/nb/05-functions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"or by typing the name of the function followed by `?`."
"or by typing `?` before or after the name of the function."
]
},
{
Expand All @@ -1288,7 +1288,7 @@
"-------\n",
"<float>\n",
" Converted temperature.\n",
"\u001b[0;31mFile:\u001b[0m /var/folders/lp/cjwc88bd3w10sg327y_4ghg0fsk7jj/T/ipykernel_76562/3878566787.py\n",
"\u001b[0;31mFile:\u001b[0m /var/folders/lp/cjwc88bd3w10sg327y_4ghg0fsk7jj/T/ipykernel_83582/3878566787.py\n",
"\u001b[0;31mType:\u001b[0m function"
]
},
Expand All @@ -1297,7 +1297,7 @@
}
],
"source": [
"kelvins_to_celsius?"
"?kelvins_to_celsius"
]
},
{
Expand Down

0 comments on commit 2576300

Please sign in to comment.