My code implementation for question 10
odd = []
even = []
for i in range(1, 101):
if i % 2 != 0:
odd.append(i)
elif i % 2 == 0:
even.append(i)
print(f'The odd list:', odd)
print()
print(f'The even list:', even)
0 answers ( 0 marked as helpful)