mirror of
https://github.com/Fechin/reference.git
synced 2026-11-20 21:23:11 +03:00
chore: some copies have been modified.
This commit is contained in:
1 parent
04ab180f13
commit
4b8b64906d
6 files changed
+15
-15
No files matched your search
@@ -155,9 +155,9 @@ message += "Part 2."
|
||||
### f-Strings (Python 3.6+)
|
||||
|
||||
```python
|
||||
>>> website = 'Quickref.ME'
|
||||
>>> website = 'cheatsheets.zip'
|
||||
>>> f"Hello, {website}"
|
||||
"Hello, Quickref.ME"
|
||||
"Hello, cheatsheets.zip"
|
||||
|
||||
>>> num = 10
|
||||
>>> f'{num} + 10 = {num + 10}'
|
||||
@@ -509,9 +509,9 @@ True
|
||||
### f-Strings usage
|
||||
|
||||
```python
|
||||
>>> website = 'Quickref.ME'
|
||||
>>> website = 'cheatsheets.zip'
|
||||
>>> f"Hello, {website}"
|
||||
"Hello, Quickref.ME"
|
||||
"Hello, cheatsheets.zip"
|
||||
|
||||
>>> num = 10
|
||||
>>> f'{num} + 10 = {num + 10}'
|
||||
|
||||
Reference in new issue
Block a user