Replace value of variable directly inside f-string
Replace value of variable directly inside f-string Question: I’m trying to replace a value inside a variable that I use within an f-string. In this case it is a single quote. For example: var1 = "foo" var2 = "bar ‘" print(f"{var1}-{var2}") Now, I want to get rid of the single quote within var2, but do …