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


dict_ = {0:'x',1:'y',2:'z'}
for a,b in dict_.items():
    print(a,b)

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