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


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

' '.join(a)

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