Computer Science, asked by shanawajansari1687, 4 months ago

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 joshuajampa1607
2

Here, you have the working program....pls mark me as brainliest.pls

Attachments:
Answered by purveshKolhe
7

\huge{\red{\underline{\underline{\mathfrak{\purple{\bigstar answer:: \bigstar}}}}}}

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