Say I have a string -
my_str = "From {country} with Love"
Variable country
is not available at the moment and is set at a later stage to
country = "Russia"
.
Now Can I print string with the inline variable value dynamically resolved. Something like -
print(f"{my_str}")
which will output
From Russia with Love
I tried to use eval() but didn't help.