Day 22 - f strings
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 formatting mechanism introduced by the PEP 498. I...
viveky.hashnode.dev1 min read