Level 1 : What will be the output of the following code?


d = {0: 'a', 1: 'b', 2: 'c'}
for i in d:
    print(i)

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