Skip to content

Commit 3a464a0

Browse files
committed
answer link and no printf
1 parent 914ced0 commit 3a464a0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

handy-stuff-strings.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,11 @@ our problem:
256256
>>>
257257
```
258258

259-
- `%s`-formatting, also known as printf-formatting and old-style
260-
formatting. This has less features than `.format()`-formatting, but
261-
`'Hello %s.' % name` is shorter and faster to type than
262-
`'Hello {}.'.format(name)`. I like to use printf-formatting for simple
263-
things and `.format` when I need more powerful features.
259+
- `%s`-formatting, also known as old-style formatting. This has less
260+
features than `.format()`-formatting, but `'Hello %s.' % name` is
261+
shorter and faster to type than `'Hello {}.'.format(name)`. I like
262+
to use `%s` formatting for simple things and `.format` when I need
263+
more powerful features.
264264

265265
```py
266266
>>> "Hello %s." % name
@@ -425,6 +425,8 @@ ValueError: could not convert string to float: 'hello'
425425
print(message, "!!!")
426426
```
427427

428+
The answers are [here](answers.md#handy-stuff-strings).
429+
428430
***
429431

430432
You may use this tutorial freely at your own risk. See

0 commit comments

Comments
 (0)