So I'm creating a 'Aussie' ballot app and I'm looking for a creative solution to an input prompt.
Basically the user inputs how many people, and then submits up to 1000 votes or w/e.
Assuming 3 candidates the input prompt would look something like:
ballot = raw_input('1 for %s: 2 for %s: 3 for %s: ') % (cand_list[0], cand_list[1], cand_list[2])
But what I'd really like to come up with is a dynamic prompt (assume the user enters 5, 10, w/e number of candidates)
I've looked into separating the ballot assignment and printing, or creating a ballot string entirely separate and passing it(assuming I can make some kind of stringbuilder function), but I'm curious to see other approaches. Still tinkering with it to see if I'll need to escape the % formatting.