Level 5 : What will be the output of the following Python code?


list('a#b#c#d'.split('#'))

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