ответвлено от main/python-labs
Изменил(а) на 'TEMA8/task.md'
Этот коммит содержится в:
@@ -37,12 +37,7 @@ def corrrr(list1, list2):
|
|||||||
return 0.0
|
return 0.0
|
||||||
x = list1[:n]
|
x = list1[:n]
|
||||||
y = list2[:n]
|
y = list2[:n]
|
||||||
|
correlation = statistics.correlation(x, y)
|
||||||
try:
|
|
||||||
correlation = statistics.correlation(x, y)
|
|
||||||
except statistics.StatisticsError:
|
|
||||||
correlation = 0.0
|
|
||||||
|
|
||||||
return correlation
|
return correlation
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user