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