What this Python exercise asks you to practise
This scenario tests create a personal greeting. It belongs to the Python Foundations roadmap and uses the strings · f-string pattern.
Programs, values, variables, input(), print(), and basic type conversion.
Program input
A person's name on one line.
Input and expected output
Generate a friendly greeting for a learner joining a Python class.
AshaHello, Asha!Why: An f-string inserts the value of name inside a readable message.
Greet a participant whose full name contains a space.
Ravi KumarHello, Ravi Kumar!Why: An f-string inserts the value of name inside a readable message.
Reference answer with explanation
name = input()
print(f"Hello, {name}!")An f-string inserts the value of name inside a readable message.
Common beginner check: Forgetting that input() returns text, even when the user types a number.
Open the guided learning workspace
Trace the logic and reveal the line-by-line explanation. The browser compiler unlocks with complete access.
Open problem 2Pattern relevance
This exercise strengthens strings · f-string. Be ready to explain the input, the rule, the boundary cases, and why the chosen approach is appropriate.