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


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

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