Skip to content

Commit

Permalink
deploy: 3f32df5
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickfrommherz committed Feb 19, 2024
1 parent d1f7508 commit 1bbeb8f
Show file tree
Hide file tree
Showing 27 changed files with 295 additions and 278 deletions.
14 changes: 11 additions & 3 deletions _sources/programming/1_Notebooks/1_Einfuehrung.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -657,21 +657,29 @@
"source": [
"#In diese Zelle kannst Du den Code zur Übung schreiben.\n",
"\n",
"\n",
"\n"
]
},
{
"cell_type": "markdown",
"id": "45ce85ef-5a05-4ccf-945a-4664b43514aa",
"id": "15a6b311-967d-4454-9e2b-7e395c5929a6",
"metadata": {
"deletable": false,
"editable": false
},
"source": [
"***\n",
"\n",
"<br>"
"<table style=\"font-size: 14px; font-family: sans-serif; letter-spacing: 0.2px;\">\n",
" <tr>\n",
" <td>\n",
" <img src=\"../3_Dateien/Lizenz/CC-BY-SA.png\" width=\"400\">\n",
" </td> \n",
" <td>\n",
" <p>Dieses Notebook sowie sämtliche weiteren <a href=\"https://github.com/yannickfrommherz/exdimed-student/tree/main\">Materialien zum Programmierenlernen für Geistes- und Sozialwissenschaftler:innen</a> sind im Rahmen des Projekts <i>Experimentierraum Digitale Medienkompetenz</i> als Teil von <a href=\"https://tu-dresden.de/gsw/virtuos/\">virTUos</a> entstanden. Erstellt wurden sie von Yannick Frommherz unter Mitarbeit von Anne-Josephine Matz. Sie stehen als Open Educational Resource nach <a href=\"https://creativecommons.org/licenses/by-sa/4.0/\">CC BY SA</a> zur freien Verfügung.\n",
" </td>\n",
" </tr>\n",
"</table>"
]
}
],
Expand Down
13 changes: 11 additions & 2 deletions programming/1_Notebooks/1_Einfuehrung.html
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ <h2>Variablen<a class="headerlink" href="#variablen" title="Permalink to this he
<div class="cell_output docutils container">
<div class="output traceback highlight-ipythontb notranslate"><div class="highlight"><pre><span></span><span class="gt">---------------------------------------------------------------------------</span>
<span class="ne">NameError</span><span class="g g-Whitespace"> </span>Traceback (most recent call last)
<span class="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">ipykernel_1887</span><span class="o">/</span><span class="mf">346808566.</span><span class="n">py</span> <span class="ow">in</span> <span class="o">&lt;</span><span class="n">module</span><span class="o">&gt;</span>
<span class="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">ipykernel_1893</span><span class="o">/</span><span class="mf">346808566.</span><span class="n">py</span> <span class="ow">in</span> <span class="o">&lt;</span><span class="n">module</span><span class="o">&gt;</span>
<span class="ne">----&gt; </span><span class="mi">1</span> <span class="nb">print</span><span class="p">(</span><span class="n">Print_out</span><span class="p">)</span>

<span class="ne">NameError</span>: name &#39;Print_out&#39; is not defined
Expand Down Expand Up @@ -855,7 +855,16 @@ <h2>Kommentare<a class="headerlink" href="#kommentare" title="Permalink to this
</div>
</div>
<hr class="docutils" />
<br></section>
<table style="font-size: 14px; font-family: sans-serif; letter-spacing: 0.2px;">
<tr>
<td>
<img src="../3_Dateien/Lizenz/CC-BY-SA.png" width="400">
</td>
<td>
<p>Dieses Notebook sowie sämtliche weiteren <a href="https://github.com/yannickfrommherz/exdimed-student/tree/main">Materialien zum Programmierenlernen für Geistes- und Sozialwissenschaftler:innen</a> sind im Rahmen des Projekts <i>Experimentierraum Digitale Medienkompetenz</i> als Teil von <a href="https://tu-dresden.de/gsw/virtuos/">virTUos</a> entstanden. Erstellt wurden sie von Yannick Frommherz unter Mitarbeit von Anne-Josephine Matz. Sie stehen als Open Educational Resource nach <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY SA</a> zur freien Verfügung.
</td>
</tr>
</table></section>
</section>

<script type="text/x-thebe-config">
Expand Down
8 changes: 4 additions & 4 deletions programming/1_Notebooks/2_Datentypen.html
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ <h2>Mengen / set<a class="headerlink" href="#mengen-set" title="Permalink to thi
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>{&#39;Vor&#39;, &#39;Bank&#39;, &#39;eine&#39;, &#39;stand&#39;, &#39;aus&#39;, &#39;dem&#39;, &#39;Eingang&#39;, &#39;Holz.&#39;, &#39;zur&#39;}
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>{&#39;dem&#39;, &#39;Bank&#39;, &#39;eine&#39;, &#39;Vor&#39;, &#39;zur&#39;, &#39;stand&#39;, &#39;Holz.&#39;, &#39;aus&#39;, &#39;Eingang&#39;}
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -833,7 +833,7 @@ <h2>Datentyp überprüfen<a class="headerlink" href="#datentyp-uberprufen" title
</div>
<div class="output traceback highlight-ipythontb notranslate"><div class="highlight"><pre><span></span><span class="gt">---------------------------------------------------------------------------</span>
<span class="ne">TypeError</span><span class="g g-Whitespace"> </span>Traceback (most recent call last)
<span class="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">ipykernel_1906</span><span class="o">/</span><span class="mf">3564867159.</span><span class="n">py</span> <span class="ow">in</span> <span class="o">&lt;</span><span class="n">module</span><span class="o">&gt;</span>
<span class="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">ipykernel_1912</span><span class="o">/</span><span class="mf">3564867159.</span><span class="n">py</span> <span class="ow">in</span> <span class="o">&lt;</span><span class="n">module</span><span class="o">&gt;</span>
<span class="g g-Whitespace"> </span><span class="mi">1</span> <span class="nb">print</span><span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">a_string</span><span class="p">))</span>
<span class="ne">----&gt; </span><span class="mi">2</span> <span class="nb">print</span><span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">an_integer</span><span class="p">))</span>
<span class="g g-Whitespace"> </span><span class="mi">3</span> <span class="c1">#print(len(a_float))</span>
Expand Down Expand Up @@ -1142,9 +1142,9 @@ <h3>Exkurs zur Identität von Objekten<a class="headerlink" href="#exkurs-zur-id
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Das string-Objekt ist immer noch das gleiche: False
→ denn 140440003975152 ist ungleich 140440004034032
→ denn 140499726807536 ist ungleich 140499726973424
Das list-Objekt ist immer noch das gleiche: True
→ denn 140440004129168 ist gleich 140440004129168
→ denn 140499727080496 ist gleich 140499727080496
</pre></div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion programming/1_Notebooks/3_Kontrollstrukturen.html
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ <h3><code class="docutils literal notranslate"><span class="pre">while</span></c
<div class="cell_output docutils container">
<div class="output traceback highlight-ipythontb notranslate"><div class="highlight"><pre><span></span><span class="gt">---------------------------------------------------------------------------</span>
<span class="ne">StdinNotImplementedError</span><span class="g g-Whitespace"> </span>Traceback (most recent call last)
<span class="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">ipykernel_1925</span><span class="o">/</span><span class="mf">572686443.</span><span class="n">py</span> <span class="ow">in</span> <span class="o">&lt;</span><span class="n">module</span><span class="o">&gt;</span>
<span class="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">ipykernel_1932</span><span class="o">/</span><span class="mf">572686443.</span><span class="n">py</span> <span class="ow">in</span> <span class="o">&lt;</span><span class="n">module</span><span class="o">&gt;</span>
<span class="g g-Whitespace"> </span><span class="mi">1</span> <span class="k">while</span> <span class="kc">True</span><span class="p">:</span>
<span class="g g-Whitespace"> </span><span class="mi">2</span>
<span class="ne">----&gt; </span><span class="mi">3</span> <span class="n">x</span> <span class="o">=</span> <span class="nb">int</span><span class="p">(</span><span class="nb">input</span><span class="p">(</span><span class="s2">&quot;Wie viele Arme hat ein Oktopus? Gib bitte eine Zahl an.</span><span class="se">\n</span><span class="s2">&quot;</span><span class="p">))</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,7 @@ <h2>Operationen bei dictionaries<a class="headerlink" href="#operationen-bei-dic
<div class="cell_output docutils container">
<div class="output traceback highlight-ipythontb notranslate"><div class="highlight"><pre><span></span><span class="gt">---------------------------------------------------------------------------</span>
<span class="ne">KeyError</span><span class="g g-Whitespace"> </span>Traceback (most recent call last)
<span class="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">ipykernel_1945</span><span class="o">/</span><span class="mf">387292150.</span><span class="n">py</span> <span class="ow">in</span> <span class="o">&lt;</span><span class="n">module</span><span class="o">&gt;</span>
<span class="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">ipykernel_1951</span><span class="o">/</span><span class="mf">387292150.</span><span class="n">py</span> <span class="ow">in</span> <span class="o">&lt;</span><span class="n">module</span><span class="o">&gt;</span>
<span class="ne">----&gt; </span><span class="mi">1</span> <span class="nb">print</span><span class="p">(</span><span class="n">federal_states</span><span class="p">[</span><span class="s2">&quot;Oberösterreich&quot;</span><span class="p">])</span>

<span class="ne">KeyError</span>: &#39;Oberösterreich&#39;
Expand Down
4 changes: 2 additions & 2 deletions programming/1_Notebooks/4_Funktionen_und_Methoden_Teil_2.html
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ <h2>Module<a class="headerlink" href="#module" title="Permalink to this heading"
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[(&#39;gewässer&#39;, 1), (&#39;minimiert&#39;, 1), (&#39;ankaufetat&#39;, 1), (&#39;feldüberwachung&#39;, 1), (&#39;fehlentwicklungen&#39;, 1), (&#39;leistungswettbewerbs&#39;, 1), (&#39;erziehungszeit&#39;, 1), (&#39;billionen&#39;, 1), (&#39;ausnahmefall&#39;, 1), (&#39;zweigen&#39;, 1)]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[(&#39;wachstumsunternehmen&#39;, 1), (&#39;europäisch-kanadischen&#39;, 1), (&#39;abnahme&#39;, 1), (&#39;verordnungsentwurf&#39;, 1), (&#39;forschungsstarke&#39;, 1), (&#39;interdisziplinarität&#39;, 1), (&#39;vermarktungsoffensive&#39;, 1), (&#39;chemikalieneinträgen&#39;, 1), (&#39;carbon&#39;, 1), (&#39;sicherungssystem&#39;, 1)]
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -926,7 +926,7 @@ <h2>Module<a class="headerlink" href="#module" title="Permalink to this heading"
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[12, 27, 59, 92, 36, 100, 22, 44, 15, 90]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[99, 95, 71, 20, 12, 24, 22, 87, 1, 7]
</pre></div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions programming/1_Notebooks/5_Input_und_Output_Teil_2.html
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ <h2>User:innen-Input für interaktive Programme<a class="headerlink" href="#user
<div class="cell_output docutils container">
<div class="output traceback highlight-ipythontb notranslate"><div class="highlight"><pre><span></span><span class="gt">---------------------------------------------------------------------------</span>
<span class="ne">StdinNotImplementedError</span><span class="g g-Whitespace"> </span>Traceback (most recent call last)
<span class="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">ipykernel_2012</span><span class="o">/</span><span class="mf">3341218118.</span><span class="n">py</span> <span class="ow">in</span> <span class="o">&lt;</span><span class="n">module</span><span class="o">&gt;</span>
<span class="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">ipykernel_2021</span><span class="o">/</span><span class="mf">3341218118.</span><span class="n">py</span> <span class="ow">in</span> <span class="o">&lt;</span><span class="n">module</span><span class="o">&gt;</span>
<span class="ne">----&gt; </span><span class="mi">1</span> <span class="n">name</span> <span class="o">=</span> <span class="nb">input</span><span class="p">(</span><span class="s2">&quot;Wie heißt Du?</span><span class="se">\n</span><span class="s2">&quot;</span><span class="p">)</span>
<span class="g g-Whitespace"> </span><span class="mi">2</span>
<span class="g g-Whitespace"> </span><span class="mi">3</span> <span class="c1">#Handelt es sich um einen anderen Datentyp als string, muss der Input gecastet werden.</span>
Expand Down Expand Up @@ -809,7 +809,7 @@ <h3>f-strings<a class="headerlink" href="#f-strings" title="Permalink to this he
<div class="cell_output docutils container">
<div class="output traceback highlight-ipythontb notranslate"><div class="highlight"><pre><span></span><span class="gt">---------------------------------------------------------------------------</span>
<span class="ne">StdinNotImplementedError</span><span class="g g-Whitespace"> </span>Traceback (most recent call last)
<span class="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">ipykernel_2012</span><span class="o">/</span><span class="mf">3236448538.</span><span class="n">py</span> <span class="ow">in</span> <span class="o">&lt;</span><span class="n">module</span><span class="o">&gt;</span>
<span class="o">/</span><span class="n">tmp</span><span class="o">/</span><span class="n">ipykernel_2021</span><span class="o">/</span><span class="mf">3236448538.</span><span class="n">py</span> <span class="ow">in</span> <span class="o">&lt;</span><span class="n">module</span><span class="o">&gt;</span>
<span class="ne">----&gt; </span><span class="mi">1</span> <span class="n">name</span> <span class="o">=</span> <span class="nb">input</span><span class="p">(</span><span class="s2">&quot;Wie heißt Du?&quot;</span><span class="p">)</span>
<span class="g g-Whitespace"> </span><span class="mi">2</span> <span class="n">age</span> <span class="o">=</span> <span class="nb">int</span><span class="p">(</span><span class="nb">input</span><span class="p">(</span><span class="s2">&quot;Und wie alt bist Du?&quot;</span><span class="p">))</span>
<span class="g g-Whitespace"> </span><span class="mi">3</span>
Expand Down
Loading

0 comments on commit 1bbeb8f

Please sign in to comment.