Module1 / 5

Python hat ein Regal voller Bücher.

module.py
python
1import math
2
3print(math.sqrt(16))
4print(math.pi)
Ausgabe
4.03.141592653589793

Ein Modul ist ein Buch mit fertigen Funktionen. import math holt es aus dem Regal, danach heißt es math.sqrt oder math.pi.

38/60