Sorry for the confusing title!
I have two lists, say:
a = [30,55,76,43,27,28]
b = [0,2,3,5]
I want to make a list c
that is both elements of a, i.e.
c = [30,76,43,28] # -> the 0th, 2nd, 3rd, 5th elements of a
Should I use the zip() function
? Or can you use a simple for loop
?
Thanks.