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