Your descriptor assures You mostly Have got a float for this course attribute of Temperature, and that You cannot use del to delete the attribute:You are able to then take a look at In the event the list is empty and, in the event that it is not vacant, extract The only aspect from the returned checklist.A standalone function is just not pythonic.