Level 9 : What is the output of the following code?


import re
str = 'python programming'
re.split('p', str)

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