TB3: Python Format Options (2 pgs)

TB3: Formatting Options

January 2022 –  a major redesign to significantly improve clarity and readability; format() function, string format method (format and replacement/substitution, interpolation, template strings; built-in Methods; date formatting; and f-string format from version 3.6. Working examples of everything including the use of lambda and ternary-if with the f-string literals. Mega fun stuff!  In your author’s opinion f-string formatting changed Python from a toy to a powerful computer language.

Format 2022b 72dpi

Enjoy

jao