What is the output of the expression re.split(r'[aeiou]', 'abcdefghij')?

Questions & AnswersCategory: Programming LanguageWhat is the output of the expression re.split(r'[aeiou]', 'abcdefghij')?
Adam asked 2 years ago

What is the output of the expression re.split(r'[aeiou]’, ‘abcdefghij’)?
a. [‘abcd’, ‘efgh’, ‘ij’]
b. [‘a’, ‘bcd’, ‘e’, ‘fgj’, ‘i’, ‘j’]
c. Results in error
d. [”, ‘bcd’, ‘fgh’, ‘j’]