Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

escape brackets in f string

print(f"{hello} ...") # Error
print(f"{{hello}} ..." # hello ...
 
PREVIOUS NEXT
Tagged: #escape #brackets #string
ADD COMMENT
Topic
Name
8+6 =