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