F-Strings & String Formatting In Python

me = "Santosh"
my = "and being a developer"
life = "is my life's"
aim = "biggest dream"
a = f"this is {me} {my} {life} {aim}"
print(a)

"""
f-string is using for merge multiple variable is a single line using {}
"""

 

Comments

Popular posts from this blog

MAP FILTER AND REDUCE FUNCTION IN PYTHON

Writing Appending to a File

Recursions: Recursive Vs Iterative Approach