String formatting in python
Introduction
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 formatting mechanism introduced by the PEP 498. It is also known...
swapnoneel.hashnode.dev1 min read