Q19Comprehension1.5 Marks1 Sep 2024
Passage
Execute the following snippet of code and answer the given sub-questions:
li = ['valorant', 'apex', 'cod']
```
li = ['valorant', 'apex', 'cod']
def count(s):
n = 0
for char in s:
if char in 'aeiou':
n += 1
return {s : n}
def recursiveFunc(n):
if n <= 0:
print("Blastoff!")
else:
print(n)
elem = li.pop(0)
li.append(count(elem))
recursiveFunc(n - 1)
recursiveFunc(3)
```
What will be printed when the code is run?