Range and Inter-quartile range being same or distinct

Hi there. Here’s a problem

Here’s the solution

Consider a list: 1,2. Isn’t the median equal to 1.5, and Q1 and Q3 equal to 1.25 and 1.75 respectively?