March 30, 2022, 1:42 p.m. | Katy Hagerty

Towards Data Science - Medium towardsdatascience.com

The obvious (and best) way to format strings

There should be one — and preferably only one — obvious way to do it.— The Zen of PythonPhoto by Tj Holowaychuk on Unsplash

Overview of All String Formatting Methods

I made many mistakes when I first learned to code. Like any neophyte, I focused on output instead of worrying about best practices. As a result, there’s no shortage of code with my fingerprints that resembles something like this:

https://medium.com/media/6028d4b0cde990369b50ecb6f4a0e6bb/href

And if …

f-string python strings-in-python

Founding AI Engineer, Agents

@ Occam AI | New York

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Machine Learning Engineer

@ Apple | Sunnyvale, California, United States