Question: Using a dictionary comprehension, make a dictionary with the keys being the lowercase vowels ( aeiou ) and the values being the number of vowels

Using a dictionary comprehension, make a dictionary with the keys being the lowercase vowels (aeiou) and the values being the number of vowels in the example_text (case insensitive). Fill in a dictionary comprehension below so that we get this desired output.
example_text = 'Outlook is bright!'
expected output:
{'i': 2,'o': 3,'u': 1}
or
{'a': 0,'e': 0,'i': 2,'o': 3,'u': 1} example_text = "I love coding in python!"
# 2a) Your code here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!