arr = [60,2,19,39,100,50,89]
arr.sort()
temp = []

answer = arr[1] - arr[0]

for i in range(len(arr)-1):
    
    ans = arr[i+1] - arr[i]
    temp.append(ans)
    
        
print(min(temp))
        
    
    

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: