Remove Minimum number from a list without min() or pop()

My problem is: Write a function def remove_minimum(values) that returns the list resulting from removing the minimum value from a given list without using the min() function nor the pop() function. Do not print the list. I have a code that sorts and reverses the list but I cannot figure out how to remove the… Read More Remove Minimum number from a list without min() or pop()

List Comprehension Format for Dictionaries

I have a dictionary that has three categories for my customers, and there are multiple customers under each category: ddd = {‘category 1:’: {‘A’: 50.5, ‘B’: 28.9, ‘C’: 46.3, ‘D’: 513.8}, ‘category 2:’: {‘E’: 20.5, ‘C’: 48.1}, ‘category 3:’: {‘D’: 28.2, ‘F’: 68.3}} The number in each sub-dictionary represents the dollar amount they paid. Therefore,… Read More List Comprehension Format for Dictionaries

How to search with the Contains method in a List if there are multiple columns of data?

Good afternoon, there is a List with several columns of data, here is an example public static List<(double date, double profit)> data_good_proffit = new List<(double date, double profit)>(); how to write to search using the Contains method in the Profit column? data_good_proffit.Contains(); so writes an error >Solution : Contain will do if you want to… Read More How to search with the Contains method in a List if there are multiple columns of data?

Two 2d Arrays Sum

I’m trying to take two 2d array inputs, and then add them together, but it won’t compile correctly. For some reason if i declare the ‘addedMatrix’ outside of the method the code compiles but the addedMatrix is blank Heres what I have so far : System.out.print("Enter Matrix 1 : "); double[][] matrix1 = new double[3][3];… Read More Two 2d Arrays Sum