
String formatting in python String formatting can be done in python using the format method. txt = "For only {price:.2f} dollars!" print(txt.format(price = 49)) f-strings in python It is a new string
Learn. Mentor. Intern. Get Hired.
I am Data Science student, has a little bit knowledge on Web Development. I also love writing and editing as my hobby. Passionate to explore the world.
Markdown supported · ⌘↵ to post
No responses yet.