livepython.net

52. Python Program to Read Two Words and Make a Sentence

Easyinput()

Overview

Read two lines, in order.

Problem Statement

Read a name, then a hobby, each on its own line, and print a sentence. For example, for Sunny and cricket, print:

Sunny loves cricket

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
cricket

Output

The output for that example:

Sunny loves cricket

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

1Sunny loves cricket

YOUR OUTPUT

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