livepython.net

51. Python Program to Greet the User by Name

Easyinput()

Overview

Read one line of text and use it in a message.

Problem Statement

Read a name and print a greeting for it. For example, if the user types Sunny, print:

Hello, Sunny!

Use input() with no prompt text: the tests type the input for you, and a prompt would end up in your output.

Input

One value per line, in this order. Example:

Sunny

Output

The output for that example:

Hello, Sunny!

The tests try 3 different inputs.

Learn this firstChapter 7 · Python input(): Get Input from the User
solution.py
# write your code here

EXPECTED OUTPUT

1Hello, Sunny!

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.