Browse Source

Numbers

pull/99/head
Jure Šorn 3 years ago
parent
commit
d1bdde452d
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -531,7 +531,7 @@ from random import random, randint, choice, shuffle, gauss, seed
<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)
```

2
index.html

@ -631,7 +631,7 @@ to_exclusive = &lt;range&gt;.stop
<div><h3 id="bitwiseoperators">Bitwise Operators</h3><pre><code class="python language-python hljs">&lt;int&gt; = &lt;int&gt; &amp; &lt;int&gt; <span class="hljs-comment"># And</span>
&lt;int&gt; = &lt;int&gt; | &lt;int&gt; <span class="hljs-comment"># Or</span>
&lt;int&gt; = &lt;int&gt; ^ &lt;int&gt; <span class="hljs-comment"># Xor (0 if both bits equal)</span>
&lt;int&gt; = &lt;int&gt; &lt;&lt; n_bits <span class="hljs-comment"># Shift left (&gt;&gt; for right)</span>
&lt;int&gt; = &lt;int&gt; &lt;&lt; n_bits <span class="hljs-comment"># Left shift (&gt;&gt; for right)</span>
&lt;int&gt; = ~&lt;int&gt; <span class="hljs-comment"># Not (also: -&lt;int&gt; - 1)</span>
</code></pre></div>

Loading…
Cancel
Save