How to declare a string II

Level
Python
Basics
Find the bug in the code above.
pymain.py — learnpython.today
pymain.py
1
def format_greeting(name):
2
    greeting = 'Hello, ' + name + ', welcome to the game!'"
3
    return greeting
4
print(format_greeting("hello")

Mission Brief

Someone made a mistake in the syntax find it and pick the correct answer.

Objective

Analyze the code snippet to your left. Identify the line containing the semantic or syntax error. Select the candidate that fixes it without introducing side effects.

Syntax

© 2024 - 2025 LearnPython.Today. All rights reserved.

Redesigned and Collaborated for experience by MenteE