Python f-strings. Formating faster and better @gjenkinsedu
Python f-strings. Formating faster and better  @gjenkinsedu
Uploaded January 2019 | Updated September 2026, 3 weeks ago
Formatting data into strings for the user or other consumption is now faster and easier with python f-strings since python 3.6. This will give you the basics.

Links:
F-string pep498: docs.python.org/3/whatsnew/3.6.html#whatsnew36-pep498
Format Specification Mini-Language: docs.python.org/3.4/library/string.html#formatspec
Format examples: docs.python.org/3.4/library/string.html#formatexamples
PEP 3101 -- Advanced String Formatting: python.org/dev/peps/pep-3101

Format cheat sheet: kapeli.com/cheat_sheets/Python_Format_Strings.docset/Contents/Resources/Documents/index

Code for last example: gist.github.com/gerryjenkinslb/032b24024df0290c3c7a80b40f49b41f
Python f-strings. Formating faster and betterIntroduction 12 | Control Structures in PythonPython Gen for Simple Moving AverageIntroduction 18 | iPython and inheritanceAnalysis 2 | Big-O 2Search/Sort 6 | bubble sortIntroduction 13 | ExceptionsFix Dual Boot Time Bug in Windows 10 when switching from LinuxTrees 4 | parse code 2Trees 18 | AVL Trees 1Search/Sort 4 | Hash tables 2Trees 6 | Traverse Tree 2
Professor Gerry Jenkins |

Python f-strings. Formating faster and better

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER