+ 1

String formatting pls explain it with an example why I will use it

4th Jul 2022, 7:34 PM
ZIZO Abd alkawy
2 Réponses
+ 4
Here articles with examples: https://realpython.com/JUMP_LINK__&&__python__&&__JUMP_LINK-string-formatting/ https://www.pythonforbeginners.com/basics/strings-formatting Tip: Google "Python string formatting" to see more examples and variants.
4th Jul 2022, 7:47 PM
Lisa
Lisa - avatar
+ 1
State of art is string templates. What for? It is always the same: Write code that is short and maintainable and readable.
4th Jul 2022, 8:13 PM
Oma Falk
Oma Falk - avatar