In Python language, formatting of strings and inserting of variables in a string can be done in following ways -
>>> name = "Jugal"
>>> "Hey there %s!" % name
'Hey there Jugal!'
>>> name = "Jugal"
>>> "Hey there {0}!".format(name)
'Hey there Jugal!'
>>> name = "Jugal"
>>> f"Hey there {name}!"
'Hey there Jugal!'