def listToStrValue(value):
 if isinstance(value, (set, tuple)):
  value = list(value)
 if isinstance(value, list):
  retVal = value.__str__().lstrip('[').rstrip(']')
 else:
  retVal = value
 return retVal

def listToStrValue ( value ) : if isinstance ( value , ( set , tuple ) ) : value = list ( value ) if isinstance ( value , list ) : retVal = value . __str__ ( ) . lstrip ( '[' ) . rstrip ( ']' ) else : retVal = value return retVal
flattens list to a string value .