Skip to content

Commit b2237cb

Browse files
lab01.py
1 parent 4bb7ebe commit b2237cb

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

code/muki/lab01.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# i will try to define a function that will do this stuff and use that for version 2
77

88
from importlib.abc import MetaPathFinder
9+
from string import ascii_letters
910

1011
'''
1112
numbahs = [5, 0, 8, 3, 4, 1, 6]
@@ -43,4 +44,16 @@ def mean_from_input(total, pieces,):
4344
print(numbaahs)
4445
'''
4546

46-
47+
digits = []
48+
while True:
49+
new_dig = input('please enter an integer or type "q" to quit:\t')
50+
if new_dig == 'q':
51+
break
52+
new_dig = int(new_dig)
53+
digits.append(new_dig)
54+
av = sum((digits))/len(digits)
55+
print(f'So, the values that you entered were calculated to have an average of: {av}')
56+
57+
58+
59+

0 commit comments

Comments
 (0)