New course! Every coder should learn Generative AI!
Try a free lesson+ 6
KaungThantKyaw ,
here is a very good tutorial about using the various possibilities of string formatting in python. it is recommended to go for the f- string version:
https://realpython.com/python-f-strings/