Level 10 : What is the output for the below code?


list = ['a', 'b', 'c', 'd']
result = ''.join(list)
print(result)

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