+ 1

Ruby vowel counter

New to the challenges. I think my code is correct I think but I don't understand how the tests are run. Do I need to input the strings from the tests? def vowels(str) total = str.upcase.count('aeiou') prin?t total end Can someone help please

31st Aug 2021, 9:46 PM
Ben Dowsett
Ben Dowsett - avatar
1 Answer
+ 2
If you're talking about code coaches, the program will provide the user input. For you to be able to read that user input, you need to use the relevant input function.
31st Aug 2021, 10:21 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar