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