Yngvarr

Generation

generate functionFri, 18 Nov 2022

максимальное значение в многомерном массиве

def max_value(my_list): max_ = my_list[0][0] for i in range(len(my_list)): for j in range(len(my_list[i])): if my_list[i][j] > max_: max_ = my_list[i][j] return max_ max_value([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]])

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant