i am generating a number from the range of 1 to 10 but would like to exclude the number 2
from that range i have no idea how to go about doing this this is what i have so far.
python file
move = random.randint(1, 10)
i am very new to python i haven't really tried anything because i have no idea how to go about doing this at all.
so to round of: i want to generate numbers between 1 to 10
and exclude number 2
Aucun commentaire:
Enregistrer un commentaire