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