To calculate the molarity of a solution, we need to know the number of moles of solute dissolved in the volume of the solution in liters. In this case, we have 2 mol of KI dissolved in 1 L of water. Therefore, the molarity (M) of the solution is:
$$M = \frac{\text{moles of solute}}{\text{volume of solution in liters}}$$
$$M = \frac{2 \text{ mol}}{1 \text{ L}} = 2 \text{ M}$$
So, the molarity of the solution is 2 M.