The following code:
a = 0 b = f'{"c": {a}}'
throws the error: ValueError: Sign not allowed in string format specifier How to fix it?
ValueError: Sign not allowed in string format specifier
Escape the braces like this.
>>> f'{{"c": {a}}}' '{"c": 0}'