What Will Be The Output Of The Following Python Codep Pre #991
What will be the output of the following Python code?</p> <pre><code class="language-python">re.split(r'(a)(t)', 'Maths is a difficult subject')</code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Regular Expressions - Python Regular Expressions - Quiz No.5.
What will be the output of the following Python code?
re.split(r'(a)(t)', 'Maths is a difficult subject')
[‘M a t h s i s a d i f f i c u l t s u b j e c t’]
[‘Maths’, ‘is’, ‘a’, ‘difficult’, ‘subject’]
‘Maths is a difficult subject’
[‘M’, ‘a’, ‘t’, ‘hs is a difficult subject’]