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


a={1:"A",2:"B",3:"C"}
for i,j in a.items():
    print(i,j,end=" ")

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