The following function takes a list arglist andreturns a pair of lists, evens andodds, such thatevens consists ofthe elements at even-numbered positions ofarglist, i.e.,arglist[0],arglist[2], etc.; andodds consists of the elements at odd-numberedpositions of arglist, i.e.,arglist[1], arglist[3], etc.
def odds_and_evens(arglist): evens = [] odds = [] for i in range(len(arglist)): ith_element = arglist[i] if i % 2 == 0: evens.append(ith_element) else:
PayPal Gateway not configured
PayPal Gateway not configured