我如何才能找到給定的鍛鍊次數的最低值?我有這樣的代碼:查找最大和矩陣最小值,巨蟒
mat = []
calificaciones = []
#Captures student ID
def lmat (numeroest):
mattotal = []
for i in range (0, numeroest):
matricula = int(raw_input('Student ID : '))
mattotal.append (matricula)
return (mattotal)
#Captures grades
def numest (numeroest):
mattotal = []
calif = []
for i in range (0, numeroest):
numcal = input ('Introduce the ammount of grades: ')
for j in range (0, numcal):
matricula = int(input('Input the grades: '))
calif.append (matricula)
mattotal.append (calif)
return (mattotal)
因此,如果用戶輸入鍛鍊的數量它將輸出的最低等級表示的運動(例如,鍛鍊2,這意味着這將是最低的)
def givelowest():
row = input ('Enter the number of the exercise: ')
for ...
我想打一個for循環,查找該行(鍛鍊的次數,則給出在所述排中最低的數字
你是什麼意思與「呼2」? – Keiwan
你使用哪種數據結構? – polku
「2」是否指_column_ 2? – TigerhawkT3