Can someone please explain to me the complement, unary plus and minus (~ + -), the right and left bitwise shift (>> <<), bitwise 'AND' (&), bitwise exclusive 'OR' and reg. 'OR' (^|)? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can someone please explain to me the complement, unary plus and minus (~ + -), the right and left bitwise shift (>> <<), bitwise 'AND' (&), bitwise exclusive 'OR' and reg. 'OR' (^|)?

1st Sep 2016, 2:58 PM
DELETED
2 Answers
26th Mar 2022, 3:37 PM
Siavash Kardar Tehran
Siavash Kardar Tehran - avatar
- 3
Python – Basic Operators What is an operator? Simple answer can be given using expression 4 + 5 is equal to 9. Here 4 and 5 are called operands and + is called operator. Python language supports following type of operators. Arithmetic Operators Comparision Operators Logical (or Relational) Operators Assignment Operators Conditional (or ternary) Operators You can get detail info in condense form here: https://jebaranjan.com/a-l-ict/python/python-basic-operators/
6th Sep 2016, 4:20 PM
Krasimir Vatchinsky
Krasimir Vatchinsky - avatar