I'm not good at programming so i'm here to ask help for a program that I don't know how to resolve
- from random import randint
- rain=[]
- x=randint(0,500)
- y=randint(0,500)
- r=2
- l=[x,y,r]
- for k in range(7):
- rain.append(l)
- print(rain)
I just want that all of the number in this list is not the same exept for r exemple:[[46, 117, 2], [46, 117, 2], [46, 117, 2], [46, 117, 2], [46, 117, 2], [46, 117, 2], [46, 117, 2]]
Aucun commentaire:
Enregistrer un commentaire