I wanted to make a program which keeps asking you questions, and continues on and on based on your answers...
So basically, I wanted to know whether the user has typed 'why' in the first input, so I tried:
s=raw_input("Are you feeling bored?\n") s1=[s] a=0 for x in s: if(x=='w'): print s1[a:a+2] a+=1
So basically, if I enter 'he hey heya why' it should print 'why'..but it doesn't! Can anyone help me?