Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| de:modul:m319:learningunits:lu03:ausgaben [2025/09/03 21:52] – msuter | de:modul:m319:learningunits:lu03:ausgaben [2025/11/17 08:33] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
|---|---|---|---|
| Zeile 16: | Zeile 16: | ||
| <code python> | <code python> | ||
| def main(): | def main(): | ||
| - | print(f'Zu druckender Text') | + | print(' |
| if __name__ == ' | if __name__ == ' | ||
| Zeile 23: | Zeile 23: | ||
| </ | </ | ||
| - | Die Ausführung des Programms beginnt mit der Zeile '' | + | Die Ausführung des Programms beginnt mit der Zeile '' |
| <WRAP center round box 60%> | <WRAP center round box 60%> | ||
| Zeile 35: | Zeile 35: | ||
| <WRAP center round box 60%> | <WRAP center round box 60%> | ||
| <code python> | <code python> | ||
| - | print(f'Hallo Welt') | + | print(' |
| </ | </ | ||
| </ | </ | ||
| - | In Wirklichkeit sieht das obige Beispiel, wenn es als vollständiges Python-Programm geschrieben wird, folgendermassen | + | In Wirklichkeit sieht das obige Beispiel, wenn es als vollständiges Python-Programm geschrieben wird, folgendermaßen |
| <WRAP center round box 60%> | <WRAP center round box 60%> | ||
| <file python hello_world.py> | <file python hello_world.py> | ||
| def hello_world(): | def hello_world(): | ||
| - | print(f'Hallo Welt') | + | print(' |
| if __name__ == ' | if __name__ == ' | ||
| Zeile 57: | Zeile 57: | ||
| <WRAP center round box 60%> | <WRAP center round box 60%> | ||
| <code python> | <code python> | ||
| - | print(f'Hello world!' | + | print(' |
| </ | </ | ||
| Zeile 68: | Zeile 68: | ||
| <WRAP center round box 60%> | <WRAP center round box 60%> | ||
| <code python> | <code python> | ||
| - | print(f'Hello there!' | + | print(' |
| </ | </ | ||