|
|
|
|
|
by ayhanfuat
306 days ago
|
|
> if you look at the cheat sheet, they are no longer simple. Most of the formatting options in the cheat sheet have always been available with f-strings. They are part of the Format Specification Mini Language (https://docs.python.org/3/library/string.html#format-specifi...) and both string.format and f-strings use the same spec. f-strings have some additional capabilities like inline expressions and debugging/logging with `=`. |
|