Skip to content

Instantly share code, notes, and snippets.

@raeq
Created May 1, 2020 11:26
Show Gist options
  • Save raeq/867f2dc09523dc7b781a30b6616b3a1b to your computer and use it in GitHub Desktop.
Save raeq/867f2dc09523dc7b781a30b6616b3a1b to your computer and use it in GitHub Desktop.
Count Vowels
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