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