Skip to content

Commit 8355e58

Browse files
committed
Final QA
1 parent ca1f7e4 commit 8355e58

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

python-inner-functions/mean.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
def mean():
2-
sample = []
2+
samples = []
33

44
def inner_mean(number):
5-
sample.append(number)
6-
return sum(sample) / len(sample)
5+
samples.append(number)
6+
return sum(samples) / len(samples)
77

88
return inner_mean
99

1010

11-
sample_mean = mean()
11+
sample_means = mean()
1212

13-
print(sample_mean(100))
14-
print(sample_mean(105))
15-
print(sample_mean(101))
16-
print(sample_mean(98))
13+
print(sample_means(100))
14+
print(sample_means(105))
15+
print(sample_means(101))
16+
print(sample_means(98))

0 commit comments

Comments
 (0)