Y
Hacker News
new
|
ask
|
show
|
jobs
by
bikingbismuth
1505 days ago
If you want braces in your f strings you double them up.
Ex:
n = "hn"
print(f"hello {n} your path is {{path}}")
Out: hello hn your path is {path}