# - Released under the GPL Gnu Public License
#-*- coding: utf-8 -*-
import random
import time
def displayIntro():
print'Hello Buddy!'
print'What is your name'
name = raw_input('Enter Name: ')
print 'Hello! ' +name+' How are you? '
print''
print''
print name+' This Is Your Lucky Number'
time.sleep(2)
def luckyNum():
toto=random.randint(0000,9999)
toto1=random.randint(0000,9999)
toto2=random.randint(0000,9999)
print '%04.f'%toto,'%04.f' %toto1,'%04.f' %toto2
print''
time.sleep(2)
playAgain = 'yes'
while playAgain == 'yes' or playAgain == 'y':
displayIntro()
luckyNum()
print'Do you want another lucky number again?(yes or no)'
playAgain = raw_input()
Sunday, September 30, 2012
random မာဂ်ယ္ကိုသုံးၿပီး toto ဂဏန္း ရွာျခင္း
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment