name = "John"
text = "Hello {}".format(name)
print(text)
Now, from Python 3.6
name = "John"
text = f"Hello {name}"
print(text)
name = "John"
text = "Hello {}".format(name)
print(text)
Now, from Python 3.6
name = "John"
text = f"Hello {name}"
print(text)