diff --git a/.zk/notebook.db b/.zk/notebook.db index 7feddbf..f5813d8 100644 Binary files a/.zk/notebook.db and b/.zk/notebook.db differ diff --git a/zk/Bitwise_operators.md b/zk/Bitwise_operators.md index f73962b..6f27f06 100644 --- a/zk/Bitwise_operators.md +++ b/zk/Bitwise_operators.md @@ -11,4 +11,20 @@ In addition to mathematical, logical and comparison operators, there are _bitwise operators_. These operators execute conditions based on the actual bits of a value rather than the values that the bits are encoded to represent. +Bitwise operators are typically represented with single characters of existing +operators, e.g. `&` instead of `&&`: + +| Bitwise operation | Operator | +| ----------------- | ------------- | +| AND | `&` | +| OR | (single pipe) | +| NOT | `~` | + +An example of using the `&` operator: + +```py +x =5 +y = 3 +``` + ## Related notes