Level 1 : What does the | operator do in set operations?

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