Level 5 : Guess the output of the following code.


list = ['apple', 'banana', 'orange']
string = ', '.join(list)
print(string)
print(type(string))

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