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