Question: Write a Python program that accepts a number, total, and a list of numbers. It then identifies those numbers from the list which add up

Write a Python program that accepts a number, total, and a list of numbers. It then identifies those numbers from the list which add up to exactly the value of the total number. The length of the list would not be more than 7. If it is not possible, then the program should output "No answer". Input: 25 //total value 5 // length of the list 10 //actual list 7 9 8 3 Output: 013
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
