input_array result for el in input_array if el result append el print

1
2
3
4
5
6
7
8
input_array = [2, 7, 3, 4, 5]
result = []
for el in input_array:
if el % 2 == 1:
result.append(el)
print(result)