Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = [0.16783458583826283,
- 0.522388408702815,
- 0.3898707561845427,
- 0.11718535975847377,
- 2.339774725582763]
- cu = float('inf')
- for i in a:
- for ii in a:
- w = abs(i-ii)
- if w < cu and not w is 0.0:
- cu = w
- print(cu)
- cu = 0.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement