func_code: def union(a, b):
      A = 'end'
      i = ''
      c = []
      while i != A:
          if a[i] not in c:
              c.append(a[i])
          elif c[i] not in c:
              c.append(c[i])
          else:
              i = A
      return c