Skip to content

Commit 8de2abe

Browse files
committed
Update header link w/ f-string
1 parent c68cd4c commit 8de2abe

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

blog_files/pysheet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2141,7 +2141,7 @@ We can use the `%x` format specifier to convert an int value to a string:
21412141
"I have 5 apples"
21422142
```
21432143

2144-
Note: For new code prefere using str.format over the `%` operator.
2144+
Note: For new code, using str.format or f-strings is strongly recommended over the `%` operator.
21452145

21462146
### String Formatting (str.format)
21472147

@@ -2188,7 +2188,7 @@ Or:
21882188
>>> logging.debug("User name: " + name)
21892189
```
21902190

2191-
### Formatted String Literals (Python 3.6+)
2191+
### Formatted String Literals or f-strings (Python 3.6+)
21922192

21932193
```python
21942194
>>> name = 'Elizabeth'

python_cheat_sheet.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"\n",
2020
"## Read It\n",
2121
"\n",
22-
"- [Online](https://wilfredinni.github.io/python-cheatsheet/)\n",
22+
"- [Website](https://www.pythoncheatsheet.org)\n",
2323
"- [Github](https://github.com/wilfredinni/python-cheatsheet)\n",
2424
"- [PDF](https://github.com/wilfredinni/Python-cheatsheet/raw/master/python_cheat_sheet.pdf)\n",
2525
"- [Jupyter Notebook](https://mybinder.org/v2/gh/wilfredinni/python-cheatsheet/master?filepath=python_cheat_sheet.ipynb)\n",
@@ -126,7 +126,7 @@
126126
" - [% operator](#operator)\n",
127127
" - [String Formatting (str.format)](#string-formatting-strformat)\n",
128128
" - [Lazy string formatting](#lazy-string-formatting)\n",
129-
" - [Formatted String Literals (Python 3.6+)](#formatted-string-literals-python-36)\n",
129+
" - [Formatted String Literals or f-strings (Python 3.6+)](#formatted-string-literals-or-f-strings-python-36)\n",
130130
" - [Template Strings](#template-strings)\n",
131131
"- [Regular Expressions](#regular-expressions)\n",
132132
" - [Matching Regex Objects](#matching-regex-objects)\n",
@@ -4356,7 +4356,7 @@
43564356
"cell_type": "markdown",
43574357
"metadata": {},
43584358
"source": [
4359-
"Note: For new code prefere using str.format over the `%` operator.\n",
4359+
"Note: For new code, using str.format or f-strings is strongly recommended over the `%` operator.\n",
43604360
"\n",
43614361
"[*Return to the Top*](#python-cheatsheet)\n",
43624362
"\n",
@@ -4454,7 +4454,7 @@
44544454
"source": [
44554455
"[*Return to the Top*](#python-cheatsheet)\n",
44564456
"\n",
4457-
"### Formatted String Literals (Python 3.6+)"
4457+
"### Formatted String Literals or f-strings (Python 3.6+)"
44584458
]
44594459
},
44604460
{

python_cheat_sheet.pdf

1.12 KB
Binary file not shown.

0 commit comments

Comments
 (0)