Level 9 : What is the output of the following code?


listNumbers = [20, 22, 24, 26, 28, 28, 20, 30, 24]
print(list(set(listNumbers)))

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