I am on task 4 in the loops challenge ( Learn Python 3 | Codecademy
When i run the program, nothing prints. This is my code for solving the problem:
def odd_indices(lst):
new_list = []
for odd in lst:
if odd%2 != 0:
lst.append(odd)
return new_list