问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图
运行结果及报错内容
我的解答思路和尝试过的方法
首先用spilt()将所有的单词分开,之后用for遍历将单词分配到字典中,统计数出元音字母出现的个数,最后将统计出的数进行比较计算,在for出最后最小的数字
我想要达到的结果
print(least_vowel_words("the rhythm of life"))
['rhythm']
print(least_vowel_words("The quality of mercy is not strain'd ... mercy Percy."))
['mercy', 'percy']