Level 9 : What does the ^ operator do in Python when used between two integers?

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