Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
lehrkraefte:ks:informatik-glf4-22-4msi [2022/05/20 07:33] Simon Knaus |
lehrkraefte:ks:informatik-glf4-22-4msi [2023/02/07 09:25] Simon Knaus [KW 7] |
||
---|---|---|---|
Line 381: | Line 381: | ||
- Wenn-dann-Codes | - Wenn-dann-Codes | ||
- Vor- und Nachteile Python versus Excel. | - Vor- und Nachteile Python versus Excel. | ||
- | ==== Beispiel Code ==== | + | === Beispiel Code === |
<code python bsp.py> | <code python bsp.py> | ||
from random import randint #nur randint von random importieren | from random import randint #nur randint von random importieren | ||
Line 678: | Line 678: | ||
Damit ist die Wahrscheinlichkeit, | Damit ist die Wahrscheinlichkeit, | ||
- | $$ \mathrm{P}(X=k)=\begin{pmatrix}n\\k\end{pmatrix}\cdot p^k\cdot (1-p)^{n-k}$$ | + | $$ \mathrm{P}(X=k)=\begin{pmatrix}n \\ k\end{pmatrix}\cdot p^k\cdot (1-p)^{n-k}$$ |
==== KW 6 ==== | ==== KW 6 ==== | ||
=== Ziele === | === Ziele === |