File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -256,11 +256,11 @@ our problem:
256
256
>> >
257
257
```
258
258
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.
264
264
265
265
```py
266
266
>> > " Hello %s ." % name
@@ -425,6 +425,8 @@ ValueError: could not convert string to float: 'hello'
425
425
print (message, " !!!" )
426
426
```
427
427
428
+ The answers are [here](answers.md# handy-stuff-strings).
429
+
428
430
** *
429
431
430
432
You may use this tutorial freely at your own risk. See
You can’t perform that action at this time.
0 commit comments