Create a random list of one hundred 3 digit numbers with some selected seed. Save that list in variable list_q2. Then print elements, which are divisible by their corresponding index's last digit. Ignore index zero.
Hints: use library random.
Here's what I already did:
import random
x = []
n = 100
for i in range(n):
x.append(random.randint(100, 999))
Aucun commentaire:
Enregistrer un commentaire