from random import randrange dice = randrange(1,7) + randrange(1,7) print "You roll a", dice if dice == 7: print"You win, you crazy nutjob!" point = dice while dice !=7: dice = randrange(1,7) + randrange(1,7) print "Now you roll a", dice if dice==point: print"Nice play freak, you win again!" break