Skip to content

Commit 751770a

Browse files
committed
Tuple
1 parent edfb747 commit 751770a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,24 +128,24 @@ Set
128128
```
129129

130130
### Frozen Set
131-
* **Frozen set is immutable and hashable set.**
132-
* **It can be used as a key in a dictionary or as an element in a set.**
131+
* **Is immutable and hashable.**
132+
* **That means it can be used as a key in a dictionary or as an element in a set.**
133133
```python
134134
<frozenset> = frozenset(<collection>)
135135
```
136136

137137

138138
Tuple
139139
-----
140-
**Tuple is immutable and hashable list.**
140+
**Tuple is an immutable and hashable list.**
141141
```python
142142
<tuple> = ()
143143
<tuple> = (<el>, )
144144
<tuple> = (<el_1>, <el_2>, ...)
145145
```
146146

147147
### Named Tuple
148-
**Named tuple is tuple's subclass with named elements.**
148+
**Tuple's subclass with named elements.**
149149

150150
```python
151151
>>> from collections import namedtuple

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,19 +288,19 @@ <h2 id="set"><a href="#set" name="set">#</a>Set</h2>
288288
</code></pre>
289289
<h3 id="frozenset">Frozen Set</h3>
290290
<ul>
291-
<li><strong>Frozen set is immutable and hashable set.</strong></li>
292-
<li><strong>It can be used as a key in a dictionary or as an element in a set.</strong></li>
291+
<li><strong>Is immutable and hashable.</strong></li>
292+
<li><strong>That means it can be used as a key in a dictionary or as an element in a set.</strong></li>
293293
</ul>
294294
<pre><code class="python language-python hljs">&lt;frozenset&gt; = frozenset(&lt;collection&gt;)
295295
</code></pre>
296296
<h2 id="tuple"><a href="#tuple" name="tuple">#</a>Tuple</h2>
297-
<p><strong>Tuple is immutable and hashable list.</strong></p>
297+
<p><strong>Tuple is an immutable and hashable list.</strong></p>
298298
<pre><code class="python language-python hljs">&lt;tuple&gt; = ()
299299
&lt;tuple&gt; = (&lt;el&gt;, )
300300
&lt;tuple&gt; = (&lt;el_1&gt;, &lt;el_2&gt;, ...)
301301
</code></pre>
302302
<h3 id="namedtuple">Named Tuple</h3>
303-
<p><strong>Named tuple is tuple's subclass with named elements.</strong></p>
303+
<p><strong>Tuple's subclass with named elements.</strong></p>
304304
<pre><code class="python language-python hljs"><span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> collections <span class="hljs-keyword">import</span> namedtuple
305305
<span class="hljs-meta">&gt;&gt;&gt; </span>Point = namedtuple(<span class="hljs-string">'Point'</span>, <span class="hljs-string">'x y'</span>)
306306
<span class="hljs-meta">&gt;&gt;&gt; </span>p = Point(<span class="hljs-number">1</span>, y=<span class="hljs-number">2</span>)

0 commit comments

Comments
 (0)