Pills coating (4 points) ======================== To control the coating process of pills, a pharmaceutical company takes data on temperature, humidity and ventilation at different points in the production center. This data in each point is represented in a string (:py:class:`str`) with the following format: ``'code-TEMP:t-HUM:h-air'`` where ``code`` is the point code, ``t`` is the temperature, ``h`` is the humidity and ``air`` is a string which can be 'ON' or 'OFF' indicating whether there is ventilation at that point or not. Examples: ``'AX1-TEMP:40-HUM:70-ON'``, ``'B4-TEMP:4-HUM:9-ON'``, ``'BRF66-TEMP:102-HUM:100-ON'``. The temperature and humidity are always positive integer values. See that the point code has a variable number of characters. Write function :py:func:`control` that takes a list of strings as described and returns a list of tuples that correspond to those points with ventilation (i.e. if ``air`` is 'ON'). Each tuple has three elements: the point code (:py:class:`str`), the temperature (:py:class:`int`) and the humidity (:py:class:`int`). The list of tuples must be sorted lexicographically, i. e., first by point code, then by temperature and then by humidity. Save this function to file ``p1.py``. Examples: .. literalinclude:: test-control.txt :language: python :lines: 3-12 .. note:: More tests are provided in file :download:`test-control.txt`.