You are to implement a function that processes a list of transactions. The function definition and its parameters are as
Posted: Wed Apr 27, 2022 3:49 pm
You are to implement a function that processes a list of transactions. The function definition and its parameters are as follows: process_transactions (transactions, lower bound, upper_bound) transactions: A list of floats. lower bound: A float - upper bound: A float. The function should return a list of three itens: - The first item is a list containing the transactions lower than or equal to the lower_bound. - The second item is a list containing the transactions between lower bound and upper_bound. The third item is a list containing the transactions greater than or equal to the upper_bound. Notes: Your function should receive its data vin its parameters only. Your submitted solution must not use any input() function - Your function should return its results. Your submitted solution must NOT print anything - Any return value that doesn't conform to the expected output type will be graded as zero. Hint: 1 - create separate enpty lists for the three items and fill them up accordingly, Example 1/0 >>>> process_transactions (27.5, 34.0, 73.3, 31.0, 66.0). 30.8. 40.6) [[27.5), (34.0, 1.0). 173.3, 66.01) >>>> process_transactions([27.89, 34.44, 32.21, 31.26, 66.711, 20.0, 34.44) 10. (27.89, 32.21, 31.26). [34.44, 66.7111