Source Code:
(back to article)
name = "John" print("Hello, %s!" % name) print("Hello, {}!".format(name)) print(f"Hello, {name}!")
Result:
Report an issue