Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ch02-strings/e05b3_different_vowels.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def pig_latin_multivowels(word):
first letter to the end is whether
the word contains two or more different vowels.
"""
number_of_vowels = len(set(word) & set('aeiou'))
number_of_vowels = len(set(word.lower) & set('aeiou')) # Adding .lower() makes the code more robust by including potential capital letters.

if number_of_vowels > 1:
return f'{word}way'
Expand Down