From d1bdde452d152debfef8ab9b7cd915bce6c6746e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 29 Apr 2021 03:32:36 +0200 Subject: [PATCH] Numbers --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c2f5a38..ecd876a 100644 --- a/README.md +++ b/README.md @@ -531,7 +531,7 @@ from random import random, randint, choice, shuffle, gauss, seed = & # And = | # Or = ^ # Xor (0 if both bits equal) - = << n_bits # Shift left (>> for right) + = << n_bits # Left shift (>> for right) = ~ # Not (also: - - 1) ``` diff --git a/index.html b/index.html index dc85944..d7e629b 100644 --- a/index.html +++ b/index.html @@ -631,7 +631,7 @@ to_exclusive = <range>.stop

Bitwise Operators

<int> = <int> & <int>                    # And
 <int> = <int> | <int>                    # Or
 <int> = <int> ^ <int>                    # Xor (0 if both bits equal)
-<int> = <int> << n_bits                  # Shift left (>> for right)
+<int> = <int> << n_bits                  # Left shift (>> for right)
 <int> = ~<int>                           # Not (also: -<int> - 1)