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