Pig Latin is a game that children often play. It is a way of encoding a word that can be described by two simple rules: | Cheap Nursing Papers

Pig Latin is a game that children often play. It is a way of encoding a word that can be described by two simple rules:

Pig Latin is a game that children often play. It is a way of encoding a word that can be described by two simple rules:

  • If the word begins with a vowel (‘a’, ‘e’, ‘i’, ‘o’ or ‘u’), add ‘yay’ to the end of the word.
  • If the word begins with a consonant (the other letters), take all the consonants before the first vowel, add them to the end of the word, and then add ‘ay’ to the end of the word.

Using python 3, design a function pig_latinify(n): that takes a word n and returns its Pig Latin equivalent.

  • For example:
  • • If n = ‘aArdvArk’, pig_latinify(n) should return ‘aArdvArkyay’.
  • • If n = ‘wombat’, pig_latinify(n) should return ‘ombatway’.
  • • If n = ‘Thylacine’, pig_latinify(n) should return ‘acineThylay’.

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp