Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickfrommherz committed Apr 10, 2024
1 parent ac62422 commit e5e7fca
Show file tree
Hide file tree
Showing 41 changed files with 496 additions and 829 deletions.
Binary file modified website/_build/.doctrees/environment.pickle
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified website/_build/html/objects.inv
Binary file not shown.
6 changes: 3 additions & 3 deletions website/_build/html/programming/1_Notebooks/2_Datentypen.html
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ <h2>Mengen / set<a class="headerlink" href="#mengen-set" title="Link zu dieser
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>{&#39;zur&#39;, &#39;eine&#39;, &#39;aus&#39;, &#39;Bank&#39;, &#39;Vor&#39;, &#39;stand&#39;, &#39;Holz.&#39;, &#39;dem&#39;, &#39;Eingang&#39;}
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>{&#39;Eingang&#39;, &#39;zur&#39;, &#39;stand&#39;, &#39;eine&#39;, &#39;Vor&#39;, &#39;aus&#39;, &#39;dem&#39;, &#39;Holz.&#39;, &#39;Bank&#39;}
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -1144,9 +1144,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 4385595632 ist ungleich 4390205360
→ denn 4603497328 ist ungleich 4577195440
Das list-Objekt ist immer noch das gleiche: True
→ denn 4390575424 ist gleich 4390575424
→ denn 4603711104 ist gleich 4603711104
</pre></div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ <h2>Module<a class="headerlink" href="#module" title="Link zu dieser Überschrif
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[(&#39;einstufen&#39;, 1), (&#39;afrikanischer&#39;, 1), (&#39;summit&quot;&#39;, 1), (&#39;geschlechterforschung&#39;, 1), (&#39;kunde&#39;, 1), (&#39;geförderte&#39;, 1), (&#39;pflanzenarten&#39;, 1), (&#39;stresstests);&#39;, 1), (&#39;kinderärztliche&#39;, 1), (&#39;mobilitätseingeschränkte&#39;, 1)]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[(&#39;wildnis&#39;, 1), (&#39;ausreichen&#39;, 1), (&#39;neu-&#39;, 1), (&#39;ki-&#39;, 1), (&#39;größter&#39;, 1), (&#39;bauqualität&#39;, 1), (&#39;aussetzung&#39;, 1), (&#39;solchen&#39;, 1), (&#39;weitreichende&#39;, 1), (&#39;forces&#39;, 1)]
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -925,7 +925,7 @@ <h2>Module<a class="headerlink" href="#module" title="Link zu dieser Überschrif
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[82, 89, 68, 22, 74, 3, 96, 30, 39, 6]
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[35, 97, 76, 57, 7, 97, 93, 54, 87, 34]
</pre></div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1748,28 +1748,28 @@ <h3><code class="docutils literal notranslate"><span class="pre">apply</span></c
<tbody>
<tr>
<th>0</th>
<td>29</td>
<td>53</td>
<td>81</td>
<td>37</td>
</tr>
<tr>
<th>1</th>
<td>62</td>
<td>25</td>
<td>64</td>
<td>41</td>
</tr>
<tr>
<th>2</th>
<td>59</td>
<td>87</td>
<td>53</td>
<td>41</td>
</tr>
<tr>
<th>3</th>
<td>15</td>
<td>59</td>
<td>30</td>
<td>29</td>
</tr>
<tr>
<th>4</th>
<td>5</td>
<td>76</td>
<td>36</td>
<td>73</td>
</tr>
</tbody>
</table>
Expand Down Expand Up @@ -1816,33 +1816,33 @@ <h3><code class="docutils literal notranslate"><span class="pre">apply</span></c
<tbody>
<tr>
<th>0</th>
<td>29</td>
<td>53</td>
<td>1537</td>
<td>81</td>
<td>37</td>
<td>2997</td>
</tr>
<tr>
<th>1</th>
<td>62</td>
<td>25</td>
<td>1550</td>
<td>64</td>
<td>41</td>
<td>2624</td>
</tr>
<tr>
<th>2</th>
<td>59</td>
<td>87</td>
<td>5133</td>
<td>53</td>
<td>41</td>
<td>2173</td>
</tr>
<tr>
<th>3</th>
<td>15</td>
<td>59</td>
<td>885</td>
<td>30</td>
<td>29</td>
<td>870</td>
</tr>
<tr>
<th>4</th>
<td>5</td>
<td>76</td>
<td>380</td>
<td>36</td>
<td>73</td>
<td>2628</td>
</tr>
</tbody>
</table>
Expand Down Expand Up @@ -1892,33 +1892,33 @@ <h3><code class="docutils literal notranslate"><span class="pre">apply</span></c
<tbody>
<tr>
<th>0</th>
<td>29</td>
<td>53</td>
<td>1537</td>
<td>81</td>
<td>37</td>
<td>2997</td>
</tr>
<tr>
<th>1</th>
<td>62</td>
<td>25</td>
<td>1550</td>
<td>64</td>
<td>41</td>
<td>2624</td>
</tr>
<tr>
<th>2</th>
<td>59</td>
<td>87</td>
<td>5133</td>
<td>53</td>
<td>41</td>
<td>2173</td>
</tr>
<tr>
<th>3</th>
<td>15</td>
<td>59</td>
<td>885</td>
<td>30</td>
<td>29</td>
<td>870</td>
</tr>
<tr>
<th>4</th>
<td>5</td>
<td>76</td>
<td>380</td>
<td>36</td>
<td>73</td>
<td>2628</td>
</tr>
</tbody>
</table>
Expand All @@ -1932,9 +1932,9 @@ <h3><code class="docutils literal notranslate"><span class="pre">apply</span></c
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Vektorisiert: 0.004307985305786133
for-Loop 7.741755247116089
Faktor: 1797.0709502462782
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Vektorisiert: 0.005460977554321289
for-Loop 7.591502666473389
Faktor: 1390.136214800262
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -2139,9 +2139,9 @@ <h3><code class="docutils literal notranslate"><span class="pre">apply</span></c
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Vektorisiert: 1.571732759475708
for-Loop 0.4948089122772217
Faktor: 3.1764439169905834
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Vektorisiert: 1.7751097679138184
for-Loop 0.5253410339355469
Faktor: 3.378966525069891
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -2496,7 +2496,7 @@ <h2>🔧 Anwendungsfall: Wortverlaufskurven visualisieren 📈<a class="headerli
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.legend.Legend at 0x16867feb0&gt;
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.legend.Legend at 0x15b587eb0&gt;
</pre></div>
</div>
<img alt="../../_images/8dfc2ca002bb9fc53652a7058bac16fb1cd86610f1ea4d81b35361a722210980.png" src="../../_images/8dfc2ca002bb9fc53652a7058bac16fb1cd86610f1ea4d81b35361a722210980.png" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ <h1>Datentypen (Lösungen)<a class="headerlink" href="#datentypen-losungen" titl
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>{&#39;Brokkoli&#39;, &#39;Hafermilch&#39;, &#39;Marmelade&#39;, &#39;Brötchen&#39;, &#39;Pasta&#39;, &#39;Brot&#39;}
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>{&#39;Pasta&#39;, &#39;Brokkoli&#39;, &#39;Marmelade&#39;, &#39;Hafermilch&#39;, &#39;Brötchen&#39;, &#39;Brot&#39;}
</pre></div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,6 @@ <h1>Funktionen und Methoden Teil 2 (Lösungen)<a class="headerlink" href="#funkt
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[&#39;deutschland&#39;, &#39;mobilisieren&#39;, &#39;chancen&#39;, &#39;digitalisierung&#39;, &#39;nutzen&#39;, &#39;deutschland&#39;, &#39;braucht&#39;, &#39;wirtschaftlichen&#39;, &#39;sozialen&#39;, &#39;fortschritt&#39;, &#39;teilhaben&#39;, &#39;wollen&#39;, &#39;wohlstand&#39;, &#39;menschen&#39;, &#39;ankommt&#39;, &#39;wahlergebnis&#39;, &#39;hat&#39;, &#39;gezeigt&#39;, &#39;menschen&#39;, &#39;unzufrieden&#39;]
</pre></div>
</div>
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>
</pre></div>
</div>
</div>
</div>
<ol class="arabic simple" start="4">
Expand Down Expand Up @@ -742,10 +739,10 @@ <h1>Funktionen und Methoden Teil 2 (Lösungen)<a class="headerlink" href="#funkt
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>33
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>23
</pre></div>
</div>
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>111.864
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>110.837
</pre></div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,7 @@ <h1>Datenanalyse Teil 2 (Lösungen)<a class="headerlink" href="#datenanalyse-tei
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.legend.Legend at 0x1326377f0&gt;
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;matplotlib.legend.Legend at 0x12cf437f0&gt;
</pre></div>
</div>
<img alt="../../../_images/e9c3f08e63796fd69b2fe14b1d3d9bffd987c9a753259669502a3342b439d6e3.png" src="../../../_images/e9c3f08e63796fd69b2fe14b1d3d9bffd987c9a753259669502a3342b439d6e3.png" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ <h1>Zusatzübungen zum Notebook „Funktionen und Methoden“<a class="headerlin
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>9
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>10
</pre></div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,8 @@ <h1>Lösungen zu den Zusatzübungen zum Notebook „Datentypen“<a class="heade
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>86
{&#39;i&#39;, &#39;m&#39;, &#39;D&#39;, &#39;s&#39;, &#39;k&#39;, &#39;e&#39;, &#39;g&#39;, &#39;o&#39;, &#39;a&#39;, &#39;h&#39;, &#39;r&#39;, &#39;b&#39;, &#39;u&#39;, &#39;d&#39;, &#39;c&#39;, &#39;t&#39;, &#39;w&#39;, &#39;p&#39;, &#39;z&#39;, &#39;f&#39;, &#39;l&#39;, &#39;n&#39;, &#39;ä&#39;}
{&#39;q&#39;, &#39;y&#39;, &#39;v&#39;, &#39;j&#39;, &#39;x&#39;}
{&#39;l&#39;, &#39;m&#39;, &#39;b&#39;, &#39;e&#39;, &#39;s&#39;, &#39;ä&#39;, &#39;k&#39;, &#39;z&#39;, &#39;t&#39;, &#39;h&#39;, &#39;o&#39;, &#39;r&#39;, &#39;p&#39;, &#39;i&#39;, &#39;D&#39;, &#39;u&#39;, &#39;d&#39;, &#39;c&#39;, &#39;n&#39;, &#39;f&#39;, &#39;a&#39;, &#39;w&#39;, &#39;g&#39;}
{&#39;q&#39;, &#39;v&#39;, &#39;x&#39;, &#39;j&#39;, &#39;y&#39;}
</pre></div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ <h1>Lösungen zu den Zusatzübungen zum Notebook „Funktionen und Methoden“<a
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>7
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>9
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -749,40 +749,40 @@ <h1>Lösungen zu den Zusatzübungen zum Notebook „Funktionen und Methoden“<a
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Verschlüsselungscode:
a j
b t
c x
d a
e p
f v
g m
h ß
i w
j f
k y
l i
m n
n r
o u
p h
q ä
r e
s o
t s
u q
v d
w l
x k
y g
z ü
ä ö
ö b
ü z
ß c

Verschlüsselte Nachricht: ape$muiatjeepr$wos$wr$ape$swpvyzßiseqßp$wr$pwrpn$wypj$vewoxßßjisptpqspi$nws$teuyyuiweboxßpr$dpeospxys$

Verschlüsselte Nachricht mit Ablenkungszeichen: ap“e$}muiatjee(pr$w¡os$wr$ape$s≠¡wpvyz}ßis=eqß≠p$wr≠$pwrpn$wypj$vew}oxßßji]sp|tpqs[p&amp;i$n}ws$t?e|uyyui]w&#39;eboxßpr$dpeospxys$
a k
b h
c c
d v
e i
f r
g d
h j
i ü
j o
k f
l q
m ö
n w
o ß
p n
q s
r a
s x
t l
u ä
v u
w e
x p
y m
z z
ä b
ö t
ü y
ß g

Verschlüsselte Nachricht: via$dßqvhkaaiw$üxl$üw$via$lüirfyjqlaäji$üw$iüwiö$üfik$raüxcjjkqlihiäliq$öül$haßffßqüatxcjiw$uiaxlicfl$

Verschlüsselte Nachricht mit Ablenkungszeichen: v&#39;%ia/$d&#39;ßq)v(hkaai}w$üxl$üw$&amp;via$¡lüirfyjqlaäj&amp;i$üw$iüwiö*$ü&#39;fik$r&#39;aüxcjjkqlihiä≠]l)iq$¡öül|$haßf%fßqüat*xcjiw$uiaxlicfl$
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -1017,20 +1017,16 @@ <h1>Lösungen zu den Zusatzübungen zum Notebook „Funktionen und Methoden“<a
</div>
</div>
<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">KeyboardInterrupt</span><span class="g g-Whitespace"> </span>Traceback (most recent call last)
<span class="n">Cell</span> <span class="n">In</span><span class="p">[</span><span class="mi">13</span><span class="p">],</span> <span class="n">line</span> <span class="mi">59</span>
<span class="g g-Whitespace"> </span><span class="mi">56</span> <span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="s2">&quot;../../3_Dateien/Koalitionsvertraege/koalitionsvertrag_2021.txt&quot;</span><span class="p">,</span> <span class="n">encoding</span><span class="o">=</span><span class="s2">&quot;utf-8&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">g</span><span class="p">:</span>
<span class="g g-Whitespace"> </span><span class="mi">57</span> <span class="n">kv21</span> <span class="o">=</span> <span class="n">g</span><span class="o">.</span><span class="n">read</span><span class="p">()</span>
<span class="ne">---&gt; </span><span class="mi">59</span> <span class="n">ngram_freqs</span><span class="p">(</span><span class="n">kv21</span><span class="p">,</span> <span class="mi">4</span><span class="p">)[</span><span class="mi">0</span><span class="p">:</span><span class="mi">10</span><span class="p">]</span>

<span class="nn">Cell In[13], line 51,</span> in <span class="ni">ngram_freqs</span><span class="nt">(text, n)</span>
<span class="g g-Whitespace"> </span><span class="mi">48</span> <span class="n">freq_dict</span> <span class="o">=</span> <span class="p">{}</span>
<span class="g g-Whitespace"> </span><span class="mi">50</span> <span class="k">for</span> <span class="n">type_</span> <span class="ow">in</span> <span class="n">types</span><span class="p">:</span>
<span class="ne">---&gt; </span><span class="mi">51</span> <span class="n">freq_dict</span><span class="p">[</span><span class="n">type_</span><span class="p">]</span> <span class="o">=</span> <span class="n">ngrams</span><span class="o">.</span><span class="n">count</span><span class="p">(</span><span class="n">type_</span><span class="p">)</span>
<span class="g g-Whitespace"> </span><span class="mi">53</span> <span class="k">return</span> <span class="nb">sorted</span><span class="p">(</span><span class="n">freq_dict</span><span class="o">.</span><span class="n">items</span><span class="p">(),</span> <span class="n">key</span> <span class="o">=</span> <span class="k">lambda</span> <span class="n">x</span><span class="p">:</span> <span class="n">x</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="n">reverse</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>

<span class="ne">KeyboardInterrupt</span>:
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[(&#39;wir setzen uns für&#39;, 41),
(&#39;gemeinsam mit den ländern&#39;, 20),
(&#39;setzen uns für eine&#39;, 14),
(&#39;auf den weg bringen&#39;, 12),
(&#39;setzen wir uns für&#39;, 8),
(&#39;setzen uns für ein&#39;, 8),
(&#39;uns dafür ein dass&#39;, 8),
(&#39;ausbau der erneuerbaren energien&#39;, 8),
(&#39;setzen uns für die&#39;, 7),
(&#39;im dialog mit den&#39;, 7)]
</pre></div>
</div>
</div>
Expand Down
Loading

0 comments on commit e5e7fca

Please sign in to comment.