如何将classic 字符串转换为f字符串?
variable = 42
user_input = "The answer is {variable}"
print(user_input)
yields :The answer is {variable}
f_user_input = # Here the operation to go from a string to an f-string
print(f_user_input)
预期yields :The answer is 42