SHARE
TWEET

Untitled

zeeph Dec 3rd, 2018 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. """#Sujet 2 mode simplifié
  2. scores = [21,12,14,9,4,11,18]
  3. print(scores)
  4.  
  5. scores = sorted(scores, reverse=False)
  6. print(scores)
  7. print('Il y a :',len(scores),'éléments triés')"""
  8.  
  9. #Sujet 2 mode random
  10. import random
  11.  
  12. scores = []
  13.  
  14. while (len(scores)!=11):
  15.     a = random.randint(0,31)
  16.     if (a) != 10 and [a] not in scores:
  17.         scores.append(a)
  18. scores = sorted(scores, reverse=False)
  19.  
  20. print(set(scores))
  21. print('Il y a :',len(scores),'éléments triés')
  22.  
  23. #Sujet 1
  24. scores = []
  25. réponse = input(input("Saisissez 7 valeurs s'il vous plait"))
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top