summaryrefslogtreecommitdiff
path: root/comp/work/7/input.py
diff options
context:
space:
mode:
Diffstat (limited to 'comp/work/7/input.py')
-rwxr-xr-xcomp/work/7/input.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/comp/work/7/input.py b/comp/work/7/input.py
new file mode 100755
index 0000000..a9e5c8f
--- /dev/null
+++ b/comp/work/7/input.py
@@ -0,0 +1,18 @@
+numbers = []
+for i in range(10):
+ numbers.append(int(input("number: ")))
+total = sum(numbers)
+mean = total / len(numbers)
+
+print("total =",total, "mean =",mean)
+
+above = 0
+for i in numbers:
+ if i < mean:
+ print(i, "is less than average (HA SMOL)")
+ elif i == mean:
+ print(i, "is average (BORINGGG)")
+ else:
+ print(i, "is more than average (DAMMNNNN)")
+ above = above + 1
+print(above, "numbers are above average")