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