Collect raffle entries until the user is finished, then draw a winner at random.
You do not know in advance how many names there will be, which is exactly why this needs a list instead of a fixed set of variables.
len() to stay in boundsdone.done must not end up in the list.len(names) - 1.Enter a name to add to the raffle (or type 'done'): Alice [Enter]Enter a name to add to the raffle (or type 'done'): Bob [Enter]Enter a name to add to the raffle (or type 'done'): Charlie [Enter]Enter a name to add to the raffle (or type 'done'): done [Enter]
Drawing a winner...Congratulations, Bob! You are the winner of the raffle!