import randommood = random.randrange(3)if mood == 0: print moodelif mood == 2: print moodelse: print "Illegal mood value!."