Level 10 : What will be the result of the following code?


a = {1, 2, 3}
b = {3, 4, 5}
print(a & b | a - b)

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