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