from random import randint int_listint_list_2 for l in range(25): int_random = random.randint(-15, 30) int_list.append(int_random) if int_random % 2 == 0 int_list_2.append(l)