| 1 |
f"f-string without formatted values is just a string" |
| 2 |
f"{{NOT a formatted value}}" |
| 3 |
f"{{NOT 'a' \"formatted\" \"value\"}}" |
| 4 |
f"some f-string with {a} {few():.2f} {formatted.values!r}" |
| 5 |
f'some f-string with {a} {few(""):.2f} {formatted.values!r}' |
| 6 |
f"{f'''{'nested'} inner'''} outer" |
| 7 |
f"\"{f'{nested} inner'}\" outer" |
| 8 |
f"space between opening braces: { {a for a in (1, 2, 3)}}" |
| 9 |
f'Hello \'{tricky + "example"}\'' |
| 10 |
f"Tried directories {str(rootdirs)} \ |
| 11 |
but none started with prefix {parentdir_prefix}" |
| 12 |
|
| 13 |
# output |
| 14 |
|
| 15 |
f"f-string without formatted values is just a string" |
| 16 |
f"{{NOT a formatted value}}" |
| 17 |
f'{{NOT \'a\' "formatted" "value"}}' |
| 18 |
f"some f-string with {a} {few():.2f} {formatted.values!r}" |
| 19 |
f'some f-string with {a} {few(""):.2f} {formatted.values!r}' |
| 20 |
f"{f'''{'nested'} inner'''} outer" |
| 21 |
f"\"{f'{nested} inner'}\" outer" |
| 22 |
f"space between opening braces: { {a for a in (1, 2, 3)}}" |
| 23 |
f'Hello \'{tricky + "example"}\'' |
| 24 |
f"Tried directories {str(rootdirs)} \ |
| 25 |
but none started with prefix {parentdir_prefix}" |