I want to use f string formatting instead of print. However, I get these errors: Unterminated expression in f-string; missing close brace Expected ')'
var="ab-c"
f"{var.replace("-","")}text123"
I tried to use single quote f'' and also double brackets but neither of them worked. Any idea about how to fix this?