How do I transform a classic stringstring to an f-string f-string? :
variable = 42 user_input = "The answer is {variable}" print(user_input) The answer is {variable}
Output: The answer is {variable}
f_user_input = # Here the operation to go from a string to an f-string print(f_user_input) The answer is 42
Desired output: The answer is 42