Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Je crée des données aléatoires, j'importe donc le module random
- import random
- data = []
- for v in ['Voiture A','Voiture B','Voiture C','Voiture D']:
- for a in [2016, 2017, 2018, 2019, 2020]:
- data.append([v,a,random.randint(100,2000)])
- random.shuffle(data)
- print(data)
- print(len(data))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement