i need to find a min and amx of the table and so far i can do the min of row 1 but nothing after that
--------------------------------------------------------------------
|Name | A | B | C | D | E |
--------------------------------------------------------------------
| 1 | 1.0 | 2.0 | 3.0 | 4.0 | 5.0 |
| 2 | 6.0 | 7.0 | 8.0 | 9.0 | 0.0 |
| 3 | 1.1 | 2.2 | 3.3 | 0.1 | 0.3 |
--------------------------------------------------------------------
def minimum(y,l):
for y in l:
if y == 1:
i= 0
w=(l[i],l[i+1],l[i+2],l[i+3],l[i+4])
a= min(l[i],l[i+1],l[i+2],l[i+3],l[i+4])
eli
f y == 2:
i = 5
w=(l[i],l[i+1],l[i+2],l[i+3],l[i+4])
a= min(l[i],l[i+1],l[i+2],l[i+3],l[i+4])
return a
def menu(x,l):
if x == 1:
make_table(l)
if x == 2:
y = input("enter a row (as a number) or a column (as an uppercase letter)")
if y in [ '1','2','3']:
mini = minimum(y, l)
print("Minimum is:", mini)
if x == 3:
print ('bye')