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