We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Debugging
- Words Score
- Discussions
Words Score
Words Score
Sort by
recency
|
143 Discussions
|
Please Login in order to post a comment
n = int(input()) str1 = input() str2 = str1.split(" ")
def func(a,b): score = 0 for x in b: count = 0 for char in x: if char.lower() in 'aeiouy': count += 1 if count%2==0: score = score+2 else: score = score + 1 return score
result = func(n,str2) print(result)
This is what I did, I'm just starting out. What should I work on?