<filename>Language Skills/Python/Unit 08 Loops/01 Loops/Step Up 'For's/While Loops/7-While and Else.py
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!"
