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