Intro to Python: Implementing the Sensor Dictionary and List,and Applying a Filter
I’m supposed to implement a menu that runs the functionbelow.
This class is quite difficult for me despite it being intro OOP.The below program should be implelented with the instructionsbelow.
Understand the Application
![2 def recursiveSort(sensor_list, key 0): 4 def recursiveSort_helper(sensor_list, n, t): 6 return sensor_list for i in range(n-1): if sensor listli][t] > sensor_list[i+1] [t]: temp sensor_list[i] sensor_listl1 sensor_LISt L1FI sensor_listli+1]temp 10 12 return recursiveSort_helper(sensor_list,n-1,t) 14 15 16 return recursiveSort_helper(sensor_list,len (sensor_list), key) 18 19 sensor 4213 STEM Center, 0), 20 4201: (Foundations Lab, 1), 21 4204: (CS Lab, 2), 22 4218 (Workshop Room, 3), 23 4205: (Tiled Room, 4), 4 out: (Outside, 5), 25 27 sensor_list-[] 28 29 [sensor_list.append ( (key, Dict [keyl [0],Dict[key] [1])) for key in Dictl 30 31 print (sensor_list)](https://media.cheggcdn.com/media%2Fd58%2Fd58404cd-7bd7-4c8d-87ac-5b83b42c3993%2FphpmoAe6n.png)
First
PayPal Gateway not configured
PayPal Gateway not configured