Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
lehrkraefte:snr:informatik:glf22:python:variablen-input-output [2022/09/19 09:33] Olaf Schnürer [Datentypen] |
lehrkraefte:snr:informatik:glf22:python:variablen-input-output [2023/09/03 19:45] (current) Olaf Schnürer [Aufgaben zum sinnvollen Einsatz von Variablen] |
||
---|---|---|---|
Line 37: | Line 37: | ||
Schau dir das folgende Video zur Python-Shell an und probiere es parallel selbst aus. (Wer Linux statt Windows benutzt: Die Python-Shell öffnet man wie folgt: Öffne ein Terminal (Hotkey '' | Schau dir das folgende Video zur Python-Shell an und probiere es parallel selbst aus. (Wer Linux statt Windows benutzt: Die Python-Shell öffnet man wie folgt: Öffne ein Terminal (Hotkey '' | ||
- | Die Kommunikation mit dem Computer funktioniert in Shells meist nach dem folgenden | + | Die Kommunikation mit dem Computer funktioniert in Shells meist nach dem folgenden |
[[https:// | [[https:// | ||
Line 223: | Line 223: | ||
In Python gibt es die folgenden Datentypen: | In Python gibt es die folgenden Datentypen: | ||
- | * '' | + | * '' |
* '' | * '' | ||
* '' | * '' | ||
Line 310: | Line 310: | ||
</ | </ | ||
- | <hidden Lösungsvorschlag:> | + | <!--<hidden Lösungsvorschlag:> |
<code python> | <code python> | ||
n = int(input(" | n = int(input(" | ||
print(n * "Ich liebe Informatik!\n" | print(n * "Ich liebe Informatik!\n" | ||
</ | </ | ||
- | </ | + | </hidden>--> |
</ | </ | ||
Line 336: | Line 336: | ||
</ | </ | ||
- | <hidden Lösungsvorschlag:> | + | <!--<hidden Lösungsvorschlag:> |
<code python summe-und-produkt.py> | <code python summe-und-produkt.py> | ||
x = int(input(" | x = int(input(" | ||
Line 345: | Line 345: | ||
print(" | print(" | ||
</ | </ | ||
- | </ | + | </hidden>--> |
</ | </ | ||
Line 361: | Line 361: | ||
++++++++++++++++++++++++++++++ | ++++++++++++++++++++++++++++++ | ||
</ | </ | ||
+ | <!-- | ||
<hidden Lösungsvorschlag:> | <hidden Lösungsvorschlag:> | ||
<code python> | <code python> | ||
Line 367: | Line 368: | ||
print(hoehe * (breite * " | print(hoehe * (breite * " | ||
</ | </ | ||
- | </ | + | </ |
</ | </ | ||
Line 392: | Line 392: | ||
Definiere zwei String-Variablen '' | Definiere zwei String-Variablen '' | ||
+ | <!-- | ||
<hidden Lösungsvorschlag:> | <hidden Lösungsvorschlag:> | ||
<code python> | <code python> | ||
Line 400: | Line 401: | ||
</ | </ | ||
</ | </ | ||
+ | --> | ||
</ | </ | ||