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

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