Level 10 : What will be the output of the following Python code?


a={1:"A",2:"B",3:"C"}
a.clear()
print(a)

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