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