<div><h4id="expressionsthatcallthereprmethod">Expressions that call the repr() method:</h4><pre><codeclass="python language-python hljs">print/str/repr([<obj>])
@ -875,9 +875,9 @@ Z = dataclasses.make_dataclass(<span class="hljs-string">'Z'</span>, [<span clas
<li><strong>Hints are used by type checkers like <ahref="https://pypi.org/project/mypy/">mypy</a>, data validation libraries such as <ahref="https://pypi.org/project/pydantic/">Pydantic</a> and lately also by <ahref="https://pypi.org/project/Cython/">Cython</a> compiler. However, they are not enforced by CPython interpreter.</strong></li>
@ -897,9 +897,9 @@ Z = dataclasses.make_dataclass(<span class="hljs-string">'Z'</span>, [<span clas
<li><strong>Function field() is needed because <codeclass="python hljs"><spanclass="hljs-string">'<attr_name>: list = []'</span></code> would make a list that is shared among all instances. Its 'default_factory' argument can be any <ahref="#callable">callable</a>.</strong></li>
<li><strong>For attributes of arbitrary type use <codeclass="python hljs"><spanclass="hljs-string">'typing.Any'</span></code>.</strong></li>
P = make_dataclass(<spanclass="hljs-string">'P'</span>, [(<spanclass="hljs-string">'x'</span>, float), (<spanclass="hljs-string">'y'</span>, float)])
P = make_dataclass(<spanclass="hljs-string">'P'</span>, [(<spanclass="hljs-string">'x'</span>, float, <spanclass="hljs-number">0</span>), (<spanclass="hljs-string">'y'</span>, float, <spanclass="hljs-number">0</span>)])
</code></pre>
<div><h3id="property">Property</h3><p><strong>Pythonic way of implementing getters and setters.</strong></p><pre><codeclass="python language-python hljs"><spanclass="hljs-class"><spanclass="hljs-keyword">class</span><spanclass="hljs-title">Person</span>:</span>
<spanclass="hljs-meta"> @property</span>
@ -2803,7 +2803,7 @@ z
</code></pre>
<div><h4id="displaysalinechartoftotalcoronavirusdeathspermilliongroupedbycontinent">Displays a line chart of total coronavirus deaths per million grouped by continent:</h4><p></p><divid="2a950764-39fc-416d-97fe-0a6226a3095f"class="plotly-graph-div"style="height:312px; width:914px;"></div><pre><codeclass="python language-python hljs">covid = pd.read_csv(<spanclass="hljs-string">'https://raw.githubusercontent.com/owid/covid-19-data/8dde8ca49b'</span>