Level 1 : What's the result?


a = {1, 2, 3}
b = {3, 4, 5}
print(a ^ b)

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