Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
lehrkraefte:blc:informatik:glf4-20:simulation:python-repe [2021/03/27 13:44] Ivo Blöchliger [Python Repetition / Cheat Sheet] |
lehrkraefte:blc:informatik:glf4-20:simulation:python-repe [2021/04/01 07:33] Ivo Blöchliger [Zufallszahlen] |
||
---|---|---|---|
Line 105: | Line 105: | ||
quadratzahlen.append(i*i) | quadratzahlen.append(i*i) | ||
print(" | print(" | ||
+ | print(quadratzahlen) | ||
</ | </ | ||
Line 153: | Line 154: | ||
return zahlen | return zahlen | ||
- | foos = meineListe() | + | foos = meineListe() |
print(foos) | print(foos) | ||
</ | </ | ||
Line 169: | Line 170: | ||
<code python> | <code python> | ||
from random import randrange | from random import randrange | ||
- | for i in range(1, | + | for i in range(1, |
- | print(" | + | print(" |
</ | </ | ||
Uniform verteilte reelle Zahlen im Intervall $[0,1)$. | Uniform verteilte reelle Zahlen im Intervall $[0,1)$. |