format python
# Python3 program to demonstarte
# the str.format() method
# using format option in a simple string
print ("{}, A computer science portal for geeks."
.format("GeeksforGeeks"))
# using format option for a
# value stored in a variable
str = "This article is written in {}"
print (str.format("Python"))
# formatting a string using a numeric constant
print ("Hello, I am {} years old !".format(18))
#TO know this execute and check
username,password = "GOOGLE","google"
#a. % first type
print("User name=%s User password=%s"%(username,password))
#b. {} second type
print("User name={} User password={}".format(username,password
#c. f third type
print(f"User name={username} User password={password}")
print(f"User name={username} \nUser password={password}"