Write a programExercise 3/4Elementary20 XP

Text and a number in one sentence

Task

The program gets a name and an age (the age is a whole number). It prints a sentence - for the name Ema and the age 16 this one:

Volám sa Ema a o 5 rokov budem mať 21 rokov.

Build the sentence by joining strings with +. A number cannot be joined with text, so convert it to text with str first.

Examples

  • Input

    Ema
    16

    Expected output

    Volám sa Ema a o 5 rokov budem mať 21 rokov.

Rules

  • Convert the number to text with str().

After you submit, 3 hidden tests will also check your solution: age 0, a hundred in 5 years, a short name.

Python starts the first time you run code.

Ctrl+Enter runs the program. Tab indents. Press Esc, then Tab, to leave the editor.

Input (stdin)

Each line = one call to input().

Output

Hints

Try it yourself first. Each hint reveals a little more - and lowers the reward a little.

Signed out, hints are free - but no XP is awarded either.

Solution

The solution unlocks after the last hint.