Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = [1, 2, 3, 4.5, -10, 8]
- s = a[0]
- for i in a:
- if (abs(i) > abs(s)):
- s = i
- print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement