def list2hexstr(intlist, intsize=4):
 result = ''
 for value in intlist:
  if isinstance(value, str):
   result += value
  else:
   result += int2hexstr(value, intsize)
 return result

def list2hexstr ( intlist , intsize = 4 ) : result = '' for value in intlist : if isinstance ( value , str ) : result += value else : result += int2hexstr ( value , intsize ) return result
convert a list of number/string to hexified string .