2. Create a program in python to print the odd elements of the given list using the "for" loop: List=[1,2,6,9,15,18] *
Answers
Answered by
2
Here, you have the working program....pls mark me as brainliest.pls
Attachments:
Answered by
7
list=[1,2,6,9,15,18]
og_list = []
for x in list:
if x % 2 == 1:
og_list.append(x)
print(og_list)
Hope it helps..♪
Similar questions