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 | 1736+ Python FAQs | Share
else-statement | mutable | inheritance | input-function | init | global-keyword | arithmetic-expression | numeric | list-slicing | indexing | classes | round-function | class-and-inheritance | string-concatenation | turtle | expression | input-function | while-and-for-loop | zip | debugging | indentation | condition | function-argument | loop-control | binary | feature | type_conversion | matplotlib | parameter | bitwise-operator | sum-function | max-min | file-handling | scientific-notation | exception-handling | string-iteration | integer | string-formatting | string-manipulation | namespace | namedtuple | deep-copy | version | assignment-operator | heap-memory | stack | conditional-statement | generators | multithreading | basic | operator-or | identity-operator | dicts | list-mutation | function | loop | design-principle | floating-point-precision | regular-expression | destructor | enumerate() | math-copysign | numpy | list-operation | dictionary | copy | data-type | data_structure | iterator | python-repl | center | expand-tab | conditional-statement | inherit | command-line-parsing | id-function | sys | benefit | overflow | error-handling | magic-method | filter | import-method | operator-and | mapping-function | asyncio-module | python | counter-function | lists | identifier | list | sys-module | while-loop | slicing | control-flow | memory-management | docstring | pep | python-django | decimal | __future__ | implementation | encoding | variable | objects | list-comprehension | lambda-function | precedence-and-associativity | built-in-function | odd-number | matrix | multiprocessing | application | control-statement | counter | methods | with-statement | syntax | round | string-slicing | file-handling | version-check | swapping | name-mangling | static-method | append | filter-function | thread | functional-programming | arithmetic-operation | object-attribute | list-vs-tuple | shallow-copy | binary-operation | operations | oop | sorted | min-function | global-variable | python-history | range | data-structures | method | logical-operator | update | dictionaries | assert | __init_subclass__ | while-else-loop | error | datetime | default-mutable-argument | generators-in-python | boolean-and-non-boolean | collection | type-conversion | nested-loop | compute | control-flow | comprehension | match | library | statement | attribute | split | built-in | identity-operator | fabs-function | python-module | built-in-function | global | global-variable | string-method | raise | functions | polymorphism | list-join | function-and-scope | sum() | list-indexing | zfill-function | memory | asyncio | immutable-data-type | software-design | rollback | datatype | virtual-environment | goto-function | immutability | formal-and-actual-parameter | set-operation | constructor | input | choice | int | string-method | set | min-max-function | list-method | lambda | python_version | bitwise-operator | string | def | type-conversion | pseudocode | sorting | package-management | higher-order-function | complex | multiple-inheritance | lambdas | installation | invalid-list | class-and-object | for | slice | collections | encapsulation | oops | precedence | touples | bitwise | decorator | module | factorial-function | mathematical-function | descriptors | exception-handling | conversion | tuple-unpacking | recurssion | syntaxerror | logical-operation | mysql | access-modifier | frozenset | generator | class | zip-function | pandas | regex | tuple | print | pickling-&-unpickling | return-statement | call | string-formatting | complex-number | file | head-and-tail | async | data-type | mathematics | exponentiation | typeerror | logical-operator | format | iterable | operators | array | __all__-attribute | operator | map-function | loops | yield | operator-overloading | exception | staticmethod | boolean | gil | file_handling | data-structure | keyword | virtual-environment | recursion | escape-operator | string-slicing | list-comprehension | comment | threading | comparison | math | operand | random | postfix | syntax-error | class-and-instance-variable | print-statement | data-structure | matrix-list-comprehension | syntax-error | interpreter | context-manager | random-function | join ...