Introduction to Python · 9 / 10 Exercise Easy

Store user input

Objective

Create a Python program that interacts with the user. On the first line, the program should ask the user, 'What is your name?' and store the response in a variable called 'x'. Then, on the second line, the program should respond with a personalized message: 'Nice to meet you, x,' where 'x' is replaced with the name entered by the user.

Input
x
Output
Nice to meet you, x

Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.

Start exercise