Advertisement
T-D-K

Untitled

Jun 29th, 2018
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. a = [1, 2, 3, 4.5, -10, 8]
  2. s = a[0]
  3. for i in a:
  4.     if (abs(i) > abs(s)):
  5.         s = i
  6. print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement