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