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 | 1736+ Python FAQs | Share
iterable | lists | loop | global-keyword | command-line-parsing | python-django | enumerate() | datetime | static-method | docstring | math | id-function | split | list-mutation | __future__ | asyncio-module | python | data-type | random | version | context-manager | python-repl | arithmetic-operation | math-copysign | comment | yield | filter | functional-programming | datatype | goto-function | operator-and | bitwise | staticmethod | int | max-min | version-check | memory-management | mutable | counter | python-module | decimal | name-mangling | data-structures | precedence-and-associativity | keyword | logical-operation | set-operation | operator | control-flow | oop | virtual-environment | file_handling | inheritance | basic | class-and-instance-variable | lambda | format | heap-memory | application | min-max-function | type-conversion | formal-and-actual-parameter | pandas | comprehension | syntax-error | destructor | design-principle | global | variable | numeric | pep | while-else-loop | inherit | fabs-function | conversion | object-attribute | asyncio | python_version | raise | assignment-operator | string-formatting | update | random-function | string-concatenation | string-slicing | bitwise-operator | statement | join | memory | syntaxerror | thread | return-statement | benefit | arithmetic-expression | postfix | round-function | identifier | multiprocessing | tuple-unpacking | range | gil | list-comprehension | numpy | import-method | zfill-function | dictionaries | mathematical-function | init | print-statement | sorting | attribute | installation | overflow | operand | list-join | constructor | regular-expression | sys | binary | zip | condition | dictionary | operator-overloading | dicts | scientific-notation | touples | polymorphism | conditional-statement | global-variable | nested-loop | slicing | swapping | identity-operator | matrix-list-comprehension | multithreading | namespace | data-structure | operators | choice | string | method | data-structure | global-variable | encapsulation | built-in-function | exception-handling | immutability | lambda-function | __all__-attribute | built-in | syntax | copy | feature | default-mutable-argument | list-operation | type-conversion | boolean | input-function | for | pseudocode | append | rollback | round | invalid-list | tuple | stack | bitwise-operator | indexing | string-iteration | binary-operation | integer | expression | exception-handling | function | objects | input-function | type_conversion | def | functions | complex-number | odd-number | descriptors | python-history | methods | loops | loop-control | slice | data_structure | encoding | class | exponentiation | data-type | string-formatting | package-management | debugging | mathematics | list-vs-tuple | oops | lambdas | collections | __init_subclass__ | sys-module | function-and-scope | class-and-inheritance | generators | complex | interpreter | escape-operator | higher-order-function | comparison | factorial-function | file-handling | magic-method | parameter | matplotlib | compute | function-argument | virtual-environment | string-manipulation | pickling-&-unpickling | collection | filter-function | recursion | operator-or | error | while-loop | class-and-object | implementation | multiple-inheritance | recurssion | threading | immutable-data-type | list-indexing | counter-function | file | precedence | else-statement | shallow-copy | while-and-for-loop | string-method | regex | call | expand-tab | string-method | sorted | classes | mapping-function | indentation | array | list-method | decorator | identity-operator | set | access-modifier | generators-in-python | async | min-function | with-statement | library | head-and-tail | built-in-function | deep-copy | matrix | list-comprehension | list-slicing | list | control-flow | zip-function | turtle | software-design | module | input | floating-point-precision | control-statement | map-function | syntax-error | frozenset | namedtuple | string-slicing | exception | operations | print | conditional-statement | typeerror | logical-operator | boolean-and-non-boolean | match | error-handling | iterator | file-handling | mysql | generator | sum-function | assert | center | sum() | logical-operator ...