
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.
Ultimate access to all questions.
No comments yet.