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