I am trying to make a simple game for class but I am getting hung up on one of the parts. There are two dice that roll and then you can input either the full sum or multiple numbers that equal the sum (ex. dice = 10 you could pick 10 or 3,2,5). From there each of the numbers picked will be removed from a list.
It should run a little like this,
Dice = 9
Numbers picked = 3, 5, 1
(list after the numbers were removed) [2,4,6,7,8,9]
How would I go about doing this?