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