Workout #7: Ubbi Dubbi

Sep 20, 2021

For this exercise, you’ll write a function (called ubbi_dubbi) that takes a single word (string) as an argument. It returns a string, the word’s translation into Ubbi Dubbi.

In Ubbi Dubbi, every vowel (a, e, i, o, or u) is prefaced with ub. Thus milk becomes mubilk (m-ub-ilk) and program becomes prubogrubam (prub-ogrub-am). Note: you can ignore capital letters.

TRY IT YOURSELF

ANSWER

https://colab.research.google.com/drive/1MloM1Tgr4j1M125p8aLqJ7wc8I8jAEki?usp=sharing

--

--

Abish Pius
Abish Pius

Written by Abish Pius

Data Science Professional, Python Enthusiast, turned LLM Engineer

No responses yet