Skip to content

Commit 4bb7ebe

Browse files
lab01.py
1 parent 6fdd5a7 commit 4bb7ebe

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

code/muki/lab01.py

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,42 @@
55
# thoughts are to run some loops and print sum functions with some math going on
66
# i will try to define a function that will do this stuff and use that for version 2
77

8+
from importlib.abc import MetaPathFinder
9+
10+
'''
811
numbahs = [5, 0, 8, 3, 4, 1, 6]
912
print(numbahs)
10-
print('\n') # trying to make this a little easier to identify
13+
print('\n') # trying to make this a little easier to identify when printed
1114
1215
for numbah in numbahs:
1316
print(numbah)
14-
print('\n') # trying to make this a little easier to identify
17+
print('\n') # trying to make this a little easier to identify when printed
1518
1619
for i in range(len(numbahs)):
1720
print(numbahs[i])
18-
print('\n') # trying to make this a little easier to identify
21+
print('\n') # trying to make this a little easier to identify when printed
1922
print(sum(numbahs)/len(numbahs))
23+
'''
24+
'''
25+
def mean_from_input(total, pieces,):
26+
total = sum(total)
27+
pieces = len(total)
28+
meanie = total / pieces
29+
return meanie
30+
'''
31+
'''
32+
# Version 2
33+
days = input('How many are there?\t')
34+
days = int(days)
35+
months = input('How many groups should there be?\t')
36+
months = int(months)
37+
print(f'The average number of days in a month is: {mean_from_input(days, months)}')
38+
'''
39+
'''numbaahs = []
40+
while True:
41+
n_entry = input("Please enter a number:\t")
42+
numbaahs.append(n_entry)
43+
print(numbaahs)
44+
'''
2045

21-
46+

0 commit comments

Comments
 (0)