Files
python-labs/TEMA8/task2.py
Katerina ac62360439 task
2025-12-01 12:10:42 +03:00

11 строки
207 B
Python

import statistics
def mod2(list1, list2):
n = min(len(list1), len(list2))
if n == 0:
return 0.0
x = list1[:n]
y = list2[:n]
cor = statistics.correlation(x, y)
return cor