import re
def cleanseCommand(x):
return ''.join(re.split(r'[.;!/?,]', x))
while(True):
temp = raw_input("Give command-").split()
for i in range(0,len(temp)):
temp[i]= cleanseCommand(temp[i])
if(''.join(temp)=='exit'):
sys.exit()
if(temp[0]=="generate" or 'test' or 'randomize' or 'randomise' or 'go'):
print 'bunnies'
Python 2.7.5