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