def equalize_list_lengths(a,b):
if not _s.fun.is_iterable(a): a = [a]<EOL>a = list(a)<EOL>while len(a)>len(b): a.pop(-<NUM_LIT:1>)<EOL>while len(a)<len(b): a.append(a[-<NUM_LIT:1>])<EOL>return a<EOL>
Modifies the length of list a to match b. Returns a. 
a can also not be a list (will convert it to one).
a will not be modified.