Объяснение:
1.
arr=[1,2,3,4,5,6,7,8,9]
print(max(arr)-min(arr))
2.
m=0
arr=[[-1, 0, 1,2,-3], [-1, 0, 1,4,3], [0, 1, -1,4,6], [1, 1, -1,1,9],[-1, 0, 1,2,-3], [-1, 0, 1,4,3], [0, 1, -1,4,6], [1, 1, -1,1,9], [0, 1, -1,4,6], [1, 1, -1,1,99]]
for i in arr:
if max(i)>m:
m=max(i)
ind=i
arr.remove(ind)
Объяснение:
1.
arr=[1,2,3,4,5,6,7,8,9]
print(max(arr)-min(arr))
2.
m=0
arr=[[-1, 0, 1,2,-3], [-1, 0, 1,4,3], [0, 1, -1,4,6], [1, 1, -1,1,9],[-1, 0, 1,2,-3], [-1, 0, 1,4,3], [0, 1, -1,4,6], [1, 1, -1,1,9], [0, 1, -1,4,6], [1, 1, -1,1,99]]
for i in arr:
if max(i)>m:
m=max(i)
ind=i
arr.remove(ind)