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