fstrings

#F strings
'''me="harish"
a1=3
a="this is %s %s %s"%(me, a1,"hi")
print(a)'''

#in another way
'''me="harish"
a1= "joke"
a="this is {1} {0} "
b= a.format (me, a1)
print (b)'''

#another easy way
me="harish"
a1=4
a=f"this is {me} {a1}"#here f is fast
print(a)

Comments

Popular posts from this blog

Steps taken by a compiler to execute a C program

Tokens in C

Variables and Data Types in C