Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1b88b71

Browse files
committed
Type
1 parent c0a33df commit 1b88b71

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ Type
246246
* **Type and class are synonymous.**
247247

248248
```python
249-
<type> = type(<el>) # Or: <el>.__class__
250-
<bool> = isinstance(<el>, <type>) # Or: issubclass(type(<el>), <type>)
249+
<type> = type(<el>) # Or: <el>.__class__
250+
<bool> = isinstance(<el>, <type>) # Or: issubclass(type(<el>), <type>)
251251
```
252252

253253
```python

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,8 @@
378378
<li><strong>Everything is an object.</strong></li>
379379
<li><strong>Every object has a type.</strong></li>
380380
<li><strong>Type and class are synonymous.</strong></li>
381-
</ul><pre><code class="python language-python hljs">&lt;type&gt; = type(&lt;el&gt;) <span class="hljs-comment"># Or: &lt;el&gt;.__class__</span>
382-
&lt;bool&gt; = isinstance(&lt;el&gt;, &lt;type&gt;) <span class="hljs-comment"># Or: issubclass(type(&lt;el&gt;), &lt;type&gt;)</span>
381+
</ul><pre><code class="python language-python hljs">&lt;type&gt; = type(&lt;el&gt;) <span class="hljs-comment"># Or: &lt;el&gt;.__class__</span>
382+
&lt;bool&gt; = isinstance(&lt;el&gt;, &lt;type&gt;) <span class="hljs-comment"># Or: issubclass(type(&lt;el&gt;), &lt;type&gt;)</span>
383383
</code></pre></div>
384384

385385

0 commit comments

Comments
 (0)