Write a programExercise 2/4Elementary20 XP

SURNAME, Name

Task

The program reads a first name and a surname separated by a space (for example Ján Kováč) and prints them as KOVÁČ, Ján: the surname in capitals, then a comma, a space and the first name as entered.

Examples

  • Input

    Ján Kováč

    Expected output

    KOVÁČ, Ján

After you submit, 4 hidden tests will also check your solution: a longer surname, extra spaces, single letters, Slovak accents.

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.