Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
de:modul:m319:learningunits:lu10:module [2025/12/04 15:29] msuterde:modul:m319:learningunits:lu10:module [2025/12/04 15:31] (aktuell) msuter
Zeile 15: Zeile 15:
 <WRAP center round box 60%> <WRAP center round box 60%>
 <file python mod.py> <file python mod.py>
-""" example of a module with variables, functions and a class """+""" example of a module with various stuff """
 s = "If Comrade Napoleon says it, it must be right." s = "If Comrade Napoleon says it, it must be right."
 a = [100, 200, 300] a = [100, 200, 300]
Zeile 38: Zeile 38:
 <WRAP center round box 60%> <WRAP center round box 60%>
 <code python> <code python>
 +""" example for using a module """
 import mod import mod
  
Zeile 154: Zeile 155:
 Um im lokalen Kontext zugänglich zu sein, muss den Namen der im Modul definierten Objekte das Kürzel ''mod'' vorangestellt werden: Um im lokalen Kontext zugänglich zu sein, muss den Namen der im Modul definierten Objekte das Kürzel ''mod'' vorangestellt werden:
 <code python> <code python>
 +""" example for using the module "mod" """
 import mod import mod
  
  • de/modul/m319/learningunits/lu10/module.1764858574.txt.gz
  • Zuletzt geändert: 2025/12/04 15:29
  • von msuter