Retired
count vowels in a string (retired)
329 of 1,095nakulgupta18
Description:
Write a function count_vowels
to count the number of vowels in a given string.
Notes:
- Return
nil
orNone
for non-string inputs. - Return
0
if the parameter is omitted.
Examples:
count_vowels("abcdefg") => 2
count_vowels("aAbcdeEfg") => 4
count_vowels(12) => nil
Fundamentals
Strings
Data Types
Regular Expressions
Declarative Programming
Advanced Language Features
Programming Paradigms
Similar Kata:
Stats:
Created | Jul 23, 2015 |
Warriors Trained | 2265 |
Total Skips | 92 |
Total Code Submissions | 11982 |
Total Times Completed | 1095 |
Ruby Completions | 329 |
Python Completions | 784 |
Total Stars | 18 |
% of votes with a positive feedback rating | 87% of 302 |
Total "Very Satisfied" Votes | 243 |
Total "Somewhat Satisfied" Votes | 42 |
Total "Not Satisfied" Votes | 17 |
Total Rank Assessments | 111 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 8 kyu |