Level 10 : The Output of the following code?


set1 = {10,20,40}
set2 = {40,50,60}
print(set1.union(set2))

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