Q49.Let `explode(W)` return the list of letters in word `W`. What will `count` store at the end of execution?
```
count = 0, letterList = []
wordList = ["keep", "exploring", "and", "keep", "learning"]
foreach word in wordList {
letterList = explode(word)
lastLetter = "", flag = False
foreach letter in letterList {
if(letter is a vowel and letter == lastLetter) {
flag = True
}
lastLetter = letter
}
if(flag) {
count = count + 1
}
}
```
Save
Check
Details
Q49
20 Nov 2022
Q49.Let `explode(W)` return the list of letters in word `W`. What will `count` store at the end of execution?
```
count = 0, letterList = []
wordList = ["keep", "exploring", "and", "keep", "learning"]
foreach word in wordList {
letterList = explode(word)
lastLetter = "", flag = False
foreach letter in letterList {
if(letter is a vowel and letter == lastLetter) {
flag = True
}
lastLetter = letter
}
if(flag) {
count = count + 1
}
}
```