How can I find out about the purpose of the operator "^"?
- Good day. Objects are a rather uninformative and generalized label, I would not recommend putting it in question. ru.stackoverflow.com/review/suggested-edits/52132 - Nick Volynkin ♦
|
3 answers
How can I find out about the purpose of the operator "^"?
help('^') in Python says this is the "bitwise XOR (exclusive OR)" statement . help() helps to find the meaning of characters that are difficult to search in a search engine or helps to find keywords that can be used for further searches (it is also useful to look through related topics found by help() calling).
help() works not only for operators, for example, help('...') , help('symbols') , help('json') , help(help) ...
|
This is the XOR operator. As you can see, type in the phrase "% langname% operators" in Google.
- Is this a logical or bitwise operator?) - Dmitriy Simushev
- @DmitriySimushev hex (0xAA ^ 0x55) -> 0xFF so at least bitwise. - Vladimir Martyanov
|
This is a bitwise XOR or XOR operator. Link to the documentation.
|