Profile PictureTop Solutions Stop!
$14.99

(Python) During a camping trip, your family came up with a secret language

0 ratings
Add to cart

(Python) During a camping trip, your family came up with a secret language

$14.99
0 ratings

During a camping trip, your family came up with a secret language. Since you are doing an

Information Systems course, your family asked you to make a program to help translate English to

your secret language.

The secret language works this way:

• If a word begins with a vowel (a, e, i, o, u) – you add “py” to it

• If a word begins with a consonant – you remove the first consonant

Write a program that uses a function to translate a given English sentence to the secret language.

Test your function by printing the sentence: “An espresso a day keeps the doctor away”

Your program should work as follows:

Enter your sentence:

An espresso a day keeps the doctor away

Anpy espressopy apy ay eeps he octor awaypy

Add to cart
Size
355 Bytes
Copy product URL