diff --git a/README.md b/README.md index 33fb3dd..56ff5b0 100644 --- a/README.md +++ b/README.md @@ -531,8 +531,7 @@ shuffle() = & # And = | # Or = ^ # Xor (0 if both bits equal) - = << n_bits # Shift left - = >> n_bits # Shift right + = << n_bits # Shift left (>> for right) = ~ # Compliment (flips bits) ``` @@ -560,7 +559,8 @@ from itertools import product, combinations, combinations_with_replacement, perm ```python >>> combinations('abc', 2) -[('a', 'b'), ('a', 'c'), ('b', 'c')] +[('a', 'b'), ('a', 'c'), + ('b', 'c')] ``` ```python diff --git a/index.html b/index.html index 4d8f97c..635adc4 100644 --- a/index.html +++ b/index.html @@ -606,8 +606,7 @@ shuffle(<list>)

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
-<int>        = <int> >> n_bits           # Shift right
+<int>        = <int> << n_bits           # Shift left (>> for right)
 <int>        = ~<int>                    # Compliment (flips bits)
 
@@ -627,7 +626,8 @@ shuffle(<list>) ('b', '1'), ('b', '2')]
>>> combinations('abc', 2)
-[('a', 'b'), ('a', 'c'), ('b', 'c')]
+[('a', 'b'), ('a', 'c'),
+ ('b', 'c')]
 
>>> combinations_with_replacement('abc', 2)
 [('a', 'a'), ('a', 'b'), ('a', 'c'),