how to do f string in python code example
Example 1: python fstring
#python3.6 is required
age = 12
name = "Simon"
print(f"Hi! My name is {name} and I am {age} years old")
Example 2: not using f string in python
>>> "Hello, {1}. You are {0}.".format(age, name)
'Hello, Eric. You are 74.'