#-------1-----------------
a = [i for i in range(2, 100, 2)] # четные
for i in a:
print(i)
#-------2-----------------
a2 = [i for i in range(1, 99, 2)] # нечёт
for i in a2:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#-------1-----------------
a = [i for i in range(2, 100, 2)] # четные
for i in a:
print(i)
#-------2-----------------
a2 = [i for i in range(1, 99, 2)] # нечёт
for i in a2:
print(i)