Advertisement
rodolpheg

Untitled

Sep 29th, 2020
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. # Je crée des données aléatoires, j'importe donc le module random
  2. import random
  3.  
  4. data = []
  5. for v in ['Voiture A','Voiture B','Voiture C','Voiture D']:
  6. for a in [2016, 2017, 2018, 2019, 2020]:
  7. data.append([v,a,random.randint(100,2000)])
  8. random.shuffle(data)
  9. print(data)
  10.  
  11. print(len(data))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement