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

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