loading
main.py
1
2
3
4
5
6
7
8
9
10
11
li=[2,-1,8,7,3,25,4]
max=li[0]
min=li[0]
for i in li:
  if i<min:
    min=i
  if i>max:
    max=i
e=max-min
print(e)