Created
May 1, 2020 11:26
-
-
Save raeq/867f2dc09523dc7b781a30b6616b3a1b to your computer and use it in GitHub Desktop.
Count Vowels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sentence:str = "The quick brown fox jumped over the lazy dog." | |
vowels:set = {"a","e","i","o","u",} | |
i:int = 0 | |
for letter in sentence: | |
if letter in vowels: | |
i+=1 | |
print(f"We found {i} vowels in: {sentence}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment