pythonTest/python/02_python_interestingPoints/mittelwert.py

7 lines
180 B
Python

import numpy as np
messwerte = np.array([25.5, 30.1, 28.9, 35.0, 29.8, 31.2])
durchschnitt = np.mean(messwerte)
print(f"Der durchschnittliche Wert beträgt: {durchschnitt:.2f}")