Knapsack Problem Using Greedy Method Python