Python - Input and Output
Which of the following is the correct syntax to use an f-string to insert variable
name into a string?name into a string?f before the quotes and uses curly braces {} to insert variables.f"Hello, {name}!". Options A and B lack the f prefix, and C uses incorrect syntax with $name.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions