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

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