mass = list(range(1, 16))
for i in range(len(mass) - 1, -1, -1):
if mass[i] % 3 != 0:
continue
else:
mass.remove(mass[i])
print(mass)
Объяснение:
mass = list(range(1, 16))
for i in range(len(mass) - 1, -1, -1):
if mass[i] % 3 != 0:
continue
else:
mass.remove(mass[i])
print(mass)
Объяснение: