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