Write a programElementary20 XPExercise 9/15

Vowel or consonant

Task

The user enters letters, each on its own line, until they enter -1.

For every input the program prints samohlaska (vowel) or spoluhlaska (consonant). The Slovak vowels are a, á, ä, e, é, i, í, o, ó, ô, u, ú, y, ý and letter case does not matter. If the input is not exactly one letter (for example ab, 7 or an empty line), it prints neplatny vstup (invalid input).

Examples

  • Input

    a
    b
    -1

    Expected output

    samohlaska
    spoluhlaska

After you submit, 4 hidden tests will also check your solution: y, ý and č, invalid inputs, ô and a capital Ä, an empty line.

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.