
Explanation:
Python f-strings require the f prefix and curly braces {} to evaluate variables. Option B is valid f-string syntax (though it doesn't explicitly include an underscore, it is the only syntactically correct f-string evaluating variables among the choices, assuming the underscore might be part of the variable's value). Option C uses parentheses which will not evaluate the variables, treating them as literal text.
A
{store}{id}
B
f'{store}{id}'
C
f"(store)_(id)"
D
f"store_id"
No comments yet.