Level 1 : What will be the output of the following Python code?


re.split(r'(a)(t)', 'Maths is a difficult subject')

Author: KaivalyaG | Tags: regular-expression | 1859+ Python FAQs | Share
operator-or | head-and-tail | data-structure | datetime.date,-datetime.time,-datetime.datetime | formal-and-actual-parameter | data-type | for | data-types | generators-in-python | generators | data-structures | complex | complex-number | function | format | control-flow | data-structures-in-python | expand-tab | else-statement | exception-handling | default-arguments | creating-and-starting-threads | directory-operations | data-type-conversions | generator | file-handling | boolean-and-non-boolean | class-and-instance-variable | creating-custom-modules | collection | __all__-attribute | data-structure | decorator | built-in-function | conditional-statement | introduction-to-threads | list-comprehension | advanced-file-operations | error-handling | lambdas | using-yield-in-functions | round | sorted | reading:-read(),-readline(),-readlines() | why-use-multiprocessing-over-threading?-(gil) | stack | zfill-function | working-with-dates-and-times | class-and-object | identifier | data-type | test-discovery | tuple-unpacking | list-comprehension | destructor | constructor | tuple | type-conversion | list-join | list-vs-tuple | while-loop | default-mutable-argument | gil | factorial-function | rollback | regex | feature | classes | loops | literal-characters-and-special-characters | min-max-function | walking-through-directories-using-os.walk() | memory-management | class-and-inheritance | introduction-to-python | list-slicing | key-value-pairs | list,-set,-and-dictionary-comprehensions | matplotlib | built-in-function | input-function | multiple-inheritance | fabs-function | id-function | loop-control-statements | comparison | copy | call | difference-between-threads-and-processes | arithmetic-expression | yield | built-in-modules | min-function | staticmethod | variable | function-argument | immutable-data-type | virtual-environment | syntaxerror | regular-expression | immutability | operator | slice | list-operation | package-management | module | string-iteration | logical-operators | pass | type_conversion | membership-operators-(in,-not-in) | reading-and-writing-files | list-mutation | regular-expressions | list-methods-and-slicing | range | zip-function | string-concatenation | matrix-list-comprehension | python-history | odd-number | string-methods | software-design | update | string-method | max-min | python | zip | tuples | integers | using-the-threading-module | overflow | string-manipulation | string-slicing | oop | list-method | working-with-file-paths | unit-testing | python-module | basic | syntax | overriding-methods | dictionary | shallow-copy | file | operand | syntax-error | docstring | integer | identity-operators-(is,-is-not) | encapsulation | namedtuple | built-in | condition | using-lists-as-stacks | slicing | magic-method | defining-functions | error | mathematical-function | global-variable | dictionary-methods | sys-module | handling-missing-values-(fillna,-dropna) | while-and-for-loop | attribute | binary-operation | conversion | tuple-methods | __future__ | decimal | recursion | single-inheritance | random | function-and-scope | precedence | logical-operation | collections | assignment-operators | static-method | math-copysign | sum-function | comprehension | formatting-with-strftime | list | identity-operator | filter | conditional-statements | using-map()-for-transformations | iterators | heap-memory | postfix | version-check | matrix | asyncio | threading | string-method | append | indentation | opening-files-(open()) | multiple-except-blocks | operators | implementation | aggregating-data-with-functools.reduce() | assignment-operator | asyncio-module | using-join()-and-is_alive()-methods | context-manager | access-modifier | lambda | methods | string-formatting | multithreading | namespace | def | working-with-temporary-files-using-tempfile | int | intering | import-method | arbitrary-arguments-(*args,-**kwargs) | map-function | split | numeric | counter | center | string-formatting | parameter | floats | assert | sorting | frozenset | operator-and | comment | nested-loop | identity-operator | exponentiation | while-loops | mapping-function | strings | error-handling | precedence-and-associativity | lambda-functions | choice | sets | control-flow | inheritance | pep | indexing | method | round-function | deep-copy | dicts | class-decorators | operations | sorting-and-ranking | __init_subclass__ | logical-operator | descriptors | type-conversion | syntax-error | booleans | pandas | anchors-(^,-$) | parsing-with-strptime | installation | multiple-inheritance | boolean-masking | method-overloading | working-with-binary-files-(rb,-wb) | introduction-to-multiprocessing | else | arithmetic-operation | data_structure | datatype | datetime | print | functions | join | functional-programming | thread-safe-data-structures-(queue.queue) | version | file-handling | design-principle | object-attribute | bitwise-operator | print-statement | set | raise | application | using-else-and-finally | filtering-and-indexing | polymorphism | name-mangling | array | binary | time-series-with-pandas | memory | goto-function | writing:-write(),-writelines() | random-function | pseudocode | filter-function | list-indexing | joining-and-merging-dataframes | python-operators | exception-handling | async | compute | command-line-parsing | iterable | mathematics | quantifiers-(*,-+,-?,-{}) | lambda-function | return-statement | benefit | conditional-statement | lists | inherit | mysql | while-else-loop | typeerror | recurssion | counter-function | dataframe-and-series-objects | python-django | bitwise | dictionary-comprehensions | exception | type-conversion-and-casting | loop-control | class | swapping | input-function | boolean | encoding | touples | escape-operator | set-operation | string-slicing | bitwise-operator | match | input | thread-synchronization | invalid-list | using-os-and-pathlib-modules | sys | control-statement | expression | multiprocessing | thread | dictionaries | virtual-environment | scientific-notation | global-keyword | indexing:-loc-vs-iloc | enumerate() | logical-operator | statement | pickling--unpickling | python-syntax-and-structure | init | sum() | file_handling | using-assertions-(assertequal,-assertraises) | functional-programming | global | operator-overloading | floating-point-precision | oops | math | managing-directories-with-os-and-shutil | raise-statement | numpy | keyword | global-variable | with-statement | higher-order-function | interpreter | reading-and-writing-large-files-efficiently | python-repl | library | mutable | loop | iterator | list-comprehensions | turtle | objects | string | debugging | python_version ...