drinaaileenx5071 drinaaileenx5071
  • 15-02-2020
  • Computers and Technology
contestada

Write a program that takes a sentence as input and prints all the vowels in the sentence. Your program must use a for loop. Sample output: C:\>: python basic_for.py Enter a sentence: the cat was very cute.

Respuesta :

tariqasghar
tariqasghar tariqasghar
  • 15-02-2020

Answer:

Python.

Explanation:

// Ask user for input string and store it to variable

sentence = input("Enter a sentence: ")

// Loop through each character in string

for character in sentence:

   //  Check for vowel

  if character == 'a' or character == 'e' or character == 'i' or character == 'o' or character == 'u':

       // print the vowel

       print(letter)

Answer Link

Otras preguntas

One wall in Zoe's bedroom is 5 feet wide and 8 feet tall. Zoe puts up a poster of her favorite athlete. The poster is 2 feet wide and 3 feet tall. How much of t
Help me please and yank you
Find the slope: (-4, 3) and (8, -3)
What is a theme in Night by Elie Wiesel?
HELP WILL MARK BRAINLIEST
Solve the picture pls
what is the enthalpy of the overall chemical reaction ch4(g)+4cl2(g)- ccl4(g)+4hcl(g)? 1. -205.7kj 2. -113.4kj 3. -14.3kj 4. 78.0kj
2.2 Mis hermanos (buscar) el teléfono celular para mí. 2.3 Mi mamá (pasar) mucho tiempo con la comida para mi fiesta grande. 2.4 Mi hermana le (ayudar) a mi mam
can someone help with this step by step ty!
Who created this work of art? (WILL GIVE BRAINLIEST TO CORRECT ANSWER) A. Pablo Picasso B. Wassily Kandinsky C. Pierre-Auguste Renoir D. Vincent van Gogh