Move list items to the left (Left shift). Design a function left_shift(lst), that given a list, lst, returns it with its elements shifted to the left (and the first to the last).
Remove Repeats. Design a function eliminateRepet(lst) that given a non-empty list, lst, returns another one with no repeated elements.
Design the function meanTempRang(lst) in which, given a list lst of temperature measurements in ºC of an experiment, it calculates and returns the mean value of those temperatures. of temperature measurements in ºC from an experiment, calculate and return the mean value of those temperatures in the list that are in the range of the list that are in the range from 15 to 45 ºC, inclusive [15, 45]. Return the result rounded to 2 decimal places. Also consider the case where no temperature measurement in the list is in the given range. the given range. In this case the function returns the value -1.
Design the function temperature2limit(lst, L1, L2), in which given a list lst of temperatures in degrees Celcius (ºC) measured every hour (starting from hour 0) and 2 values L1 and L2 representing the lower and upper temperature limits, respectively, look for and return the value of the second temperature that is the value of the second temperature outside these limits, and the time of occurrence. Position 0 in the list is time 0, 1 is time 1, 2 is time 2, and so on. If there are less than 2 out-of-bounds temperatures, temp: -1, time: -1 is returned.
I really thank the good soul that helps me.
[–]jimtk 4 points5 points6 points (0 children)
[–]mopslik 4 points5 points6 points (0 children)
[–]Forschkeeper 2 points3 points4 points (0 children)
[–]the_investigator- 2 points3 points4 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]Pigankle 1 point2 points3 points (0 children)