def rev_iter(list) : # return a list that is the reverse of the given list result = [] for item in list : result = [item]+result return result def rev_rec(list) : # return a list that is the reverse of the given list (recursively)