What I want to do is replace all the even numbers of a list with 0 for instance
list = [1,2,3,4,5] would be list = [1,0,3,0,5]
I thought about doing it this way
list = [1,2,3,4,5]
for i in list:
if i % 2 == 0:
# then replace the even numbers with 0
the problem is that I cant figure out how to write the next line of code