def gen_items(n, fmt, obj):
 if (n == 0):
  return gen_item(fmt, obj)
 lst = ([0] * n)
 for i in range(n):
  lst[i] = gen_item(fmt, obj)
 return lst

def gen_items ( n , fmt , obj ) : if ( n == 0 ) : return gen_item ( fmt , obj ) lst = ( [ 0 ] * n ) for i in range ( n ) : lst [ i ] = gen_item ( fmt , obj ) return lst
return a list of random items .