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


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

' '.join(a)

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