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