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