Eliminate duplicates from the temperatures list by transforming it into a set.

Make sure to type set(temperatures).