Level 10 : What is the output of the following code?


a = [1,2,3,4]
aa  = enumerate(a)
print(list(aa))

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