Level 3 : What is the output of following code?


p =['a','b','c']
res = ''.join(k)
print(res)

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