import random print "Lucky Numbers! 3 numbers will be generated." print "If one of them is a '5', you lose!" count = 0 while count < 3: num = random.randint(1, 6) print num if num == 5: print "Sorry, you lose!" break count += 1 else: print "You win!"
Question is what causes the program to print not one number but three numbers from that range?
At first i though it was that count variable but i think is wrong. Can anyone explain this to me?
PS: Merry Christmas to those who celebrate it.