Level 1 : What is the output for the following code?


a = ['he', 'she', 'we']

' '.join(a)

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