SHARE
TWEET

Untitled

a guest Jan 21st, 2020 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. l=[1,32,4,2,6,45,23]
  2. fin=[]
  3. print(l)
  4. l.sort()
  5. if len(l)>=3:
  6.     for i in range(3):
  7.         fin.append(l[-(i+1)])
  8. print(l)
  9. print("les 3 plus grandes valeurs sont {}, {} et {}".format(fin[2],fin[1],fin[0]))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top