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 | 1859+ Python FAQs | Share
higher-order-function | single-inheritance | working-with-dates-and-times | syntax-error | tuple-unpacking | thread | type-conversion-and-casting | matrix-list-comprehension | objects | python_version | fabs-function | assert | slice | mutable | conditional-statement | feature | array | turtle | filter | invalid-list | join | namespace | lambda | string-slicing | gil | identifier | print-statement | oop | __future__ | dicts | recurssion | while-loop | __init_subclass__ | sys-module | directory-operations | joining-and-merging-dataframes | package-management | pass | loops | difference-between-threads-and-processes | built-in-function | floats | threading | else-statement | using-os-and-pathlib-modules | dataframe-and-series-objects | boolean | with-statement | memory | min-max-function | max-min | binary-operation | boolean-and-non-boolean | sets | advanced-file-operations | sum-function | name-mangling | logical-operator | precedence | error | touples | creating-and-starting-threads | bitwise-operator | sorted | library | counter | statement | thread-synchronization | string-manipulation | sys | type-conversion | id-function | bitwise | installation | tuples | magic-method | conditional-statement | asyncio-module | global | match | goto-function | python-history | comprehension | datetime | using-join()-and-is_alive()-methods | introduction-to-multiprocessing | lambda-functions | class | static-method | keyword | format | postfix | indexing | arbitrary-arguments-(*args,-**kwargs) | list,-set,-and-dictionary-comprehensions | unit-testing | precedence-and-associativity | function-argument | complex-number | multiple-inheritance | global-variable | namedtuple | datetime.date,-datetime.time,-datetime.datetime | global-keyword | mathematical-function | async | raise | collections | benefit | multiprocessing | multithreading | choice | context-manager | operator | input-function | data-structures | working-with-temporary-files-using-tempfile | function | dictionary-methods | map-function | bitwise-operator | boolean-masking | identity-operator | version | datatype | regex | center | string-formatting | assignment-operators | string-methods | list-method | operand | exception-handling | typeerror | booleans | inheritance | encapsulation | docstring | loop | intering | head-and-tail | matplotlib | dictionary | min-function | type_conversion | math-copysign | split | error-handling | literal-characters-and-special-characters | functions | parameter | access-modifier | working-with-file-paths | basic | input | indexing:-loc-vs-iloc | data_structure | floating-point-precision | arithmetic-expression | nested-loop | slicing | regular-expressions | string-slicing | thread-safe-data-structures-(queue.queue) | file-handling | list-vs-tuple | function-and-scope | mapping-function | dictionary-comprehensions | tuple-methods | virtual-environment | application | functional-programming | filtering-and-indexing | deep-copy | operator-overloading | exponentiation | regular-expression | pandas | operator-and | assignment-operator | iterator | string-formatting | indentation | lists | list-mutation | type-conversion | list-join | built-in | numpy | command-line-parsing | __all__-attribute | pickling--unpickling | list-comprehension | append | formal-and-actual-parameter | list-methods-and-slicing | sorting | class-and-inheritance | python-operators | math | handling-missing-values-(fillna,-dropna) | list-comprehension | data-type | syntax-error | else | conversion | multiple-except-blocks | decimal | identity-operator | class-and-object | while-else-loop | functional-programming | parsing-with-strptime | quantifiers-(*,-+,-?,-{}) | classes | string-iteration | reading-and-writing-large-files-efficiently | matrix | string | mysql | creating-custom-modules | binary | list-operation | zfill-function | managing-directories-with-os-and-shutil | default-mutable-argument | numeric | debugging | operators | shallow-copy | return-statement | methods | rollback | expand-tab | condition | oops | collection | working-with-binary-files-(rb,-wb) | data-types | built-in-modules | round | integer | class-decorators | test-discovery | immutability | default-arguments | multiple-inheritance | list-comprehensions | set | comparison | compute | implementation | arithmetic-operation | why-use-multiprocessing-over-threading?-(gil) | generators-in-python | exception | using-map()-for-transformations | overflow | while-loops | integers | set-operation | data-structure | anchors-(^,-$) | encoding | time-series-with-pandas | logical-operator | stack | using-assertions-(assertequal,-assertraises) | descriptors | formatting-with-strftime | introduction-to-threads | iterators | logical-operation | import-method | round-function | immutable-data-type | using-lists-as-stacks | exception-handling | recursion | reading:-read(),-readline(),-readlines() | method-overloading | method | call | object-attribute | memory-management | asyncio | print | error-handling | string-method | polymorphism | list | constructor | list-slicing | operations | built-in-function | comment | odd-number | mathematics | attribute | list-indexing | input-function | init | while-and-for-loop | staticmethod | variable | membership-operators-(in,-not-in) | random-function | aggregating-data-with-functools.reduce() | escape-operator | update | string-concatenation | sum() | raise-statement | control-statement | int | complex | syntaxerror | defining-functions | reading-and-writing-files | walking-through-directories-using-os.walk() | design-principle | random | scientific-notation | loop-control | operator-or | conditional-statements | logical-operators | writing:-write(),-writelines() | enumerate() | file-handling | counter-function | def | file | control-flow | python-syntax-and-structure | destructor | pseudocode | version-check | for | python | dictionaries | filter-function | tuple | swapping | data-structures-in-python | syntax | using-else-and-finally | virtual-environment | python-django | software-design | interpreter | module | using-yield-in-functions | data-structure | opening-files-(open()) | python-module | data-type-conversions | frozenset | data-type | control-flow | copy | zip-function | key-value-pairs | class-and-instance-variable | expression | lambda-function | zip | pep | range | file_handling | yield | global-variable | python-repl | overriding-methods | string-method | introduction-to-python | factorial-function | generator | strings | identity-operators-(is,-is-not) | iterable | sorting-and-ranking | inherit | heap-memory | loop-control-statements | using-the-threading-module | lambdas | generators | decorator ...