jobs = [["P1", 5, 5], ["P2", 2, 10], ["P3", 10, 2]]
answer = []
max_num = 0
for i in range(0,3):
if (jobs[i][1] + jobs[i][2]) // jobs[i][2] > max_num:
max_num = (jobs[i][1] + jobs[i][2]) // jobs[i][2]
answer.insert(0, jobs[i][0])
else:
answer.append(jobs[i][0])
print(answer)
To embed this project on your website, copy the following code and paste it into your website's HTML: