All pastes #1649285 Raw Edit

lunchChecker

public python v1 · immutable
#1649285 ·published 2009-10-30 14:19 UTC
rendered paste body
from random import randintlunchChoice = 0i = 0lunchArray = []while 1: 	if i == 0:		lunch = raw_input("where might you want to indulge yourself today: ")			lunchArray.append(lunch)		i += 1			if i >= 1:		lunch = raw_input("where else? push enter twice when finished. ")		i += 1	if i >= 2:		lunch = raw_input("anywhere else?")		if lunchArray.count(lunch) == 2:		lunch ==  raw_input("you already put that in! where would you like to go now?")		if lunch == "":		break					display = randint(0, len(lunchArray)-1)print lunchArray[display] + " is where you want to eat today. NOW GO!!! And have some fun!! if this" + "\n" + isn't where you want to eat try again!!!"