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


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

' '.join(a)

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