Level 1 : Given d = {10: 'X', 20: 'Y', 30: 'Z'}, which statement correctly deletes key 20?

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