have a list of 20 items. I want to create a new list than only contain the max value of every five items.
Here is was I have:
listA = [1,2,23,4,5,6,7,40,9,10,100,12,13,14,15,700,17,18,19,20]
for i in len(range(listA):
print i
How can I create listB = [23, 40, 100, 700]
from listA
using Python?