Generate a list of 10 integer random numbers from 10 to 30. And then generate another list of 10 integer randoms from 40 to 70. Convert these lists into the sets and then unify them to get a new set. I did only random numbers generate i need help with converting them to sets and unfiying new set
from random import randint as rnd
print([rnd(0,30) for i in range(10)])
print([rnd(40,70) for i in range(10)])
Aucun commentaire:
Enregistrer un commentaire