You have to work with Random module to generate your choice letter. Loop with a while(i< your number) and in each loop print to file or where you want to have your answer: print "chioce", i, "=", resolt from random generation And choosing your leter from a list of string wouldn't be to hard. I hope I undestood well what you wanted with your little program, if not you'd better rewrite what you wanted for everyone to understand.