Напишите функцию, которая будет принимать строку (на английском языке) и возвращать сумму значений гласных букв. Каждой гласной букве соответствует какое-то число: A = 4, E = 3, I = 1, O = 0, U = 0.
Регистр букв роли не играет.
Примеры:
sum_of_vowels("Let\'s test this function.") ➞ 8 sum_of_vowels("Do I get the correct output?") ➞ 10 sum_of_vowels("I love edabit!") ➞ 12
Напишите функцию, которая будет принимать строку (на английском языке) и возвращать сумму значений гласных букв. Каждой гласной букве соответствует какое-то число: A = 4, E = 3, I = 1, O = 0, U = 0.
Регистр букв роли не играет.
Примеры:
sum_of_vowels("Let\'s test this function.") ➞ 8 sum_of_vowels("Do I get the correct output?") ➞ 10 sum_of_vowels("I love edabit!") ➞ 12
BY Python вопросы на собеседовании с ответами
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
The campaign, which security firm Check Point has named Rampant Kitten, comprises two main components, one for Windows and the other for Android. Rampant Kitten’s objective is to steal Telegram messages, passwords, and two-factor authentication codes sent by SMS and then also take screenshots and record sounds within earshot of an infected phone, the researchers said in a post published on Friday.
If riding a bucking bronco is your idea of fun, you’re going to love what the stock market has in store. Consider this past week’s ride a preview.The week’s action didn’t look like much, if you didn’t know better. The Dow Jones Industrial Average rose 213.12 points or 0.6%, while the S&P 500 advanced 0.5%, and the Nasdaq Composite ended little changed.
Python вопросы на собеседовании с ответами from us