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