Write a programExercise 1/4Basic10 XP

A word downwards and backwards

Task

The program reads a word and prints it downwards - each character on its own line. On the last line it prints the whole word backwards.

For the word kód:

k
ó
d
dók

Examples

  • Input

    kód

    Expected output

    k
    ó
    d
    dók

After you submit, 4 hidden tests will also check your solution: one character, a longer word, a palindrome, digits.

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.