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