summaryrefslogtreecommitdiff
path: root/comp/work/9/scores.py
diff options
context:
space:
mode:
authorstandenboy <standenboy@seacrossedlovers.xyz>2023-12-15 10:19:20 +0000
committerstandenboy <standenboy@seacrossedlovers.xyz>2023-12-15 10:19:20 +0000
commit4a95719d58a708ad55b1389631d6339047f786a0 (patch)
tree26cb6fc2dbe7fa75f57f1d6fb13aff8955772b56 /comp/work/9/scores.py
added existing work
Diffstat (limited to 'comp/work/9/scores.py')
-rwxr-xr-xcomp/work/9/scores.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/comp/work/9/scores.py b/comp/work/9/scores.py
new file mode 100755
index 0000000..8abad3b
--- /dev/null
+++ b/comp/work/9/scores.py
@@ -0,0 +1,21 @@
+scores = [[]]
+for i in range(3):
+ tmp = []
+ for j in range(5):
+ tmp.append(int(input(f"num {j}: ")))
+ scores.append(tmp)
+
+scores.pop(0)
+for i in scores:
+ print(*i, "avg: ",(sum(i)/5), sep=" ")
+
+highest = scores[0][0]
+lowest = scores[0][0]
+for i in scores:
+ for j in i:
+ if j > highest:
+ highest = j
+ elif j < lowest:
+ lowest = j
+print(f"highest: {highest}, lowest: {lowest}")
+