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