def has_x_value(cs,x): tuple_convert = list(cs) x_values = [x[0] for x in tuple_convert] for i in x_values: if i == x: return