I am trying the below in python with f string
test=f"""
{
"""
print(test)
It gives the error
Input In [39]
"""
^
SyntaxError: f-string: expecting '}'
I want it to print {
as it is
You can try:
test = f"""{{"""
print(test)
or
test = f"{'{'}"
print(test)