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


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

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