# puzzle gauntlet advanced

Switch the Singing Letters

The remix DJ swaps the vowels: first vowel trades places with the last, second with second-last… consonants never move. 🎧

You get a word. Reverse ONLY its vowels (a, e, i, o, u) and print the result. Two fingers — but each must skip anything that doesn't sing.

Example:

Input: word = "hello" Output: holle

The vowels are e (position 1) and o (position 4). Swapping them turns "hello" into "holle", while every consonant stays put.

💡 need a hint?

pg-switch-singing-letters.py🔒 given lines are locked — write your code in between
loading...