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


s1={1, 2, 3}
s2={4, 5, 6}
s1.isdisjoint(s2)
s2.isdisjoint(s1)

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