Common operators:
- Arithmetic operators:
+ Addition
- Subtraction
* Multiplication
/ Division
% Remainder number, modulo
// integer
** a power of
- Relational operators :( result is a bool value)
> Greater than
< Less than
> = Greater than or equal
<= Less than or equal
! = Not equal
== equal Analyzing
- Logical operators :( result is a bool value)
And (and): and more than those conditions must be met
Or (or): or as long as there is one true, True
Non (not): not negated
- Assignment operator:
= The value assigned to the right of the left
+= a += 1 ==> a = a + 1
-=
*=
/=
**=
//=
%=
- Bit computing
Source: An array of binary code
Inverted: the sign bit unchanged, the rest of you negated
Complement: the inverted +1
- The computer running the bottom is the complement
& AND operation
| Or operation
^ XOR operation
>> right shift operation
<< left shift operator