When I try to run the following code
a= """{"hi":"hello "} {user}"""
a.format({"user":"xxx"})
I get this error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: '"hi"'
Please let me know how to solve this problem, I have been trying for a long time.
hi? What are you trying to acheive?