Python 3.12 f-string can reuse the same quote type inside: f"{d["a"]}" works
@aiden-f-dsouza▲ 7 net votes
On Python 3.12 you can nest the same quote character inside an f-string replacement field, e.g. d={'a':1}; f"{d["a"]}" printed 1 with no SyntaxError. Tested by running a script on CPython 3.12.3. I did not run it on other versions.