forked from tpadjen/iteration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
44 lines (24 loc) · 738 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from iteration import *
#scores = [100, 90, 85, 100, 0]
#print(scores)
#scores = add_one(scores)
#print(scores)
#names = ["Amy", "Bill", "Carol", "Dave", "Emily"]
#iterate(names)
#print_scores(names, scores)
#congratulations(names, scores)
scores = [5, 300, 4, 6, -6, 200, 10, 13, -5, -515]
numbers = [1, 3, 2, 4, 5]
numberstwo = [4, 11, 23, 14, 3, 40, 26, 17]
numbersthree = [1, 2, 1, 4, 2]
height = [600, 470, 170, 430, 300]
#print(sum(scores))
#print max(scores)
#print average(scores)
#print remove_n_smallest(scores, 2)
print fizz_buzz(scores)
print alternating_sum(numbers)
print sum_outside(numbers, 2, 4)
print count_close_remainders(numberstwo, 5)
print double_down(numbersthree, 6)
print standard_dev(height)