Q18.What is the output of the following snippet of code?
```
word = 'claustrophobic'
size = len(word)
count = 0
for x in range(size):
if word[x] in 'aeiou':
if x % 2 == 0:
count = count + 1
print(count)
```
Save
Check
Details
Q18
29 Oct 2023
Q18.What is the output of the following snippet of code?
```
word = 'claustrophobic'
size = len(word)
count = 0
for x in range(size):
if word[x] in 'aeiou':
if x % 2 == 0:
count = count + 1
print(count)
```