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