Computer Science - Class 12
Solutions to CBSE Sample Paper - Computer Science Class 12

Write a function countVowels(WORDS) in Python, that takes the dictionary, WORDS as an argument and displays the words (in lowercase) that have more than 2 vowels in them.

For example, Consider the following dictionary

WORDS={1:"Apple",2:"Orange",3:"Banana",4:"Grape",5:"Kiwi"}

The output should be:

apple

orange

banana

grape

Answer:

Answer by student

Python function to display the words (in lowercase) in a dictionary that have more than 2 vowels in them - Teachoo.png

Detailed answer by teachoo

The rest of the post is locked. Join Teachoo Black to see the full post.

Go Ad-free
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science and Computer Science at Teachoo