summaryrefslogtreecommitdiff
path: root/progs/a962.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a962.py')
-rw-r--r--progs/a962.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/a962.py b/progs/a962.py
new file mode 100644
index 0000000..42c3f53
--- /dev/null
+++ b/progs/a962.py
@@ -0,0 +1,6 @@
+def sum_average(number):
+ total = 0
+ for value in range(1, number + 1):
+ total = total + value
+ average = total / number
+ return (total,average) \ No newline at end of file