def PrintList (L): # L is a list of ints Index = 0 while (Index < len(L)): print "#", Index, "=", L[Index] Index = Index + 1 return def Adds (L, Amount=1): # L is a list of ints, Amount is how much to change each element Index = 0 while (Index < len(L)): L[Index] = L[Index] + Amount Index = Index + 1 return def DuplicateList (L): # L is a list of anything! NewList = [] Index = 0 while (Index < len(L)): NewList = NewList + [L[Index]] #NewList[Index] = L[Index] Index = Index + 1 return NewList