vals_inp=input() list_set = list(vals_inp) vals = [x for x in list_set if x != ' '] set_vals = set(vals)