CodeLearn PythonPythonPython GUI

Learn Three Different Ways of Formatting String in Python!

In this post, we will learn three different ways of formatting string in Python as well as which one you should use. The old way In the beginning of Python, there was only one way to format strings – by using %s. Let’s an example: "Hello, %s" %s name %s serves as a placeholder for a value in name variable. More variable could be embedded by adding more %s in the string…
Read more