We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca1f7e4 commit 8355e58Copy full SHA for 8355e58
1 file changed
python-inner-functions/mean.py
@@ -1,16 +1,16 @@
1
def mean():
2
- sample = []
+ samples = []
3
4
def inner_mean(number):
5
- sample.append(number)
6
- return sum(sample) / len(sample)
+ samples.append(number)
+ return sum(samples) / len(samples)
7
8
return inner_mean
9
10
11
-sample_mean = mean()
+sample_means = mean()
12
13
-print(sample_mean(100))
14
-print(sample_mean(105))
15
-print(sample_mean(101))
16
-print(sample_mean(98))
+print(sample_means(100))
+print(sample_means(105))
+print(sample_means(101))
+print(sample_means(98))
0 commit comments