Level 10 : What does d.clear() return?


d = {'p': 3}
print(d.clear())

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