I'm using Python 3.6. I feel the below code is acting bit weird when f-strings and print statement are used together in Python
person = {"name": "Jenne", "age": 23}
print(f"Person name is {person["name"]} and age is {person["age"]}")
The above statement results in Error
But when double quotes are replaced with single quotes in the print statement across name and age then it works like a charm.
print(f"Person name is {person['name']} and age is {person['age']}")
Can anyone please explain for this behavior?