Level 10 : What will the following code output?


d = {'x': 1, 'y': 2}
del d
print(d)

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