-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathh.16
More file actions
45 lines (39 loc) · 862 Bytes
/
Copy pathh.16
File metadata and controls
45 lines (39 loc) · 862 Bytes
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
45
name = input("Enter the students name: ")
my_A = [0]
a = 0
b = 0
c = 0
d = 0
e = 0
f = 0
g = 0
h = 0
i = 0
j = 0
a = int(input("Enter Test Score [1/10]"))
b = int(input("Enter Test Score [2/10]"))
c = int(input("Enter Test Score [3/10]"))
d = int(input("Enter Test Score [4/10]"))
e = int(input("Enter Test Score [5/10]"))
f = int(input("Enter Test Score [6/10]"))
g = int(input("Enter Test Score [7/10]"))
h = int(input("Enter Test Score [8/10]"))
i = int(input("Enter Test Score [9/10]"))
j = int(input("Enter Test Score [10/10]"))
my_A.append(a)
my_A.append(b)
my_A.append(c)
my_A.append(d)
my_A.append(e)
my_A.append(f)
my_A.append(g)
my_A.append(h)
my_A.append(i)
my_A.append(j)
my_A.sort()
my_B = sum(my_A[5:11])
mean = my_B/6
print(name)
print("Top six scores total points earned: ",my_B)
print("The mean is ",mean)
print("The median is ", my_A[6])