def deduplication(arg):
 if (type(arg) is types.ListType):
  return list(set(arg))
 elif (type(arg) is types.TupleType):
  return tuple(set(arg))
 return arg

def deduplication ( arg ) : if ( type ( arg ) is types . ListType ) : return list ( set ( arg ) ) elif ( type ( arg ) is types . TupleType ) : return tuple ( set ( arg ) ) return arg
deduplication the arg .