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