Level 10 : What is the output of d.items() after execution?


d = {'x': 5, 'y': 10}
d = {key.upper(): value*2 for key, value in d.items()}

Author: SarojiniD | Tags: dictionary | 1736+ Python FAQs | Share
operator-or | tuple-unpacking | data_structure | parameter | keyword | random-function | arithmetic-expression | string-iteration | expression | copy | data-structure | context-manager | built-in-function | syntax-error | operator-and | identifier | compute | asyncio | enumerate() | typeerror | threading | library | indexing | comment | string-slicing | call | complex | zip-function | head-and-tail | loops | operators | error-handling | python-module | python-django | method | inherit | update | operand | list-slicing | oop | binary-operation | syntax-error | exception-handling | bitwise | error | indentation | boolean-and-non-boolean | turtle | filter | center | class-and-inheritance | higher-order-function | exception | recurssion | identity-operator | class-and-instance-variable | while-and-for-loop | bitwise-operator | data-type | escape-operator | factorial-function | global-variable | counter | control-flow | namespace | map-function | benefit | built-in | decorator | frozenset | staticmethod | zfill-function | nested-loop | int | split | function | overflow | regular-expression | dictionaries | constructor | string-method | input | yield | gil | format | global-keyword | control-statement | with-statement | immutability | list-comprehension | identity-operator | syntax | print-statement | lambda | while-else-loop | comprehension | mathematical-function | range | thread | else-statement | list | formal-and-actual-parameter | boolean | operations | basic | destructor | mapping-function | conditional-statement | decimal | heap-memory | raise | string-formatting | list-method | global | file | lists | pandas | classes | type-conversion | odd-number | condition | namedtuple | attribute | max-min | multiple-inheritance | collection | function-argument | package-management | file-handling | debugging | datatype | def | memory-management | global-variable | sum() | list-operation | syntaxerror | descriptors | name-mangling | functional-programming | data-type | statement | memory | choice | sys | pseudocode | implementation | input-function | goto-function | encapsulation | slice | collections | array | join | list-indexing | integer | generators-in-python | data-structure | assignment-operator | type-conversion | list-comprehension | input-function | counter-function | return-statement | __init_subclass__ | regex | inheritance | loop | complex-number | stack | expand-tab | string | round-function | class | sorted | scientific-notation | matrix | functions | zip | installation | data-structures | swapping | string-formatting | matrix-list-comprehension | __future__ | list-vs-tuple | application | precedence | match | operator-overloading | virtual-environment | string-concatenation | list-join | module | function-and-scope | static-method | command-line-parsing | version-check | pep | print | init | shallow-copy | while-loop | invalid-list | multiprocessing | fabs-function | sorting | __all__-attribute | mutable | recursion | asyncio-module | variable | rollback | string-slicing | tuple | control-flow | magic-method | dictionary | filter-function | set-operation | numpy | polymorphism | conversion | iterator | encoding | design-principle | version | bitwise-operator | append | python-repl | set | mysql | logical-operator | arithmetic-operation | docstring | string-manipulation | math-copysign | exception-handling | interpreter | file-handling | pickling-&-unpickling | math | binary | comparison | datetime | software-design | file_handling | access-modifier | async | matplotlib | object-attribute | precedence-and-associativity | slicing | mathematics | built-in-function | sum-function | id-function | feature | generators | random | python | lambda-function | generator | import-method | lambdas | python-history | postfix | objects | round | deep-copy | touples | operator | iterable | floating-point-precision | multithreading | oops | min-max-function | logical-operator | exponentiation | virtual-environment | loop-control | default-mutable-argument | for | methods | conditional-statement | python_version | assert | dicts | logical-operation | immutable-data-type | type_conversion | numeric | list-mutation | min-function | sys-module | class-and-object | string-method ...