Re: Input wont work with if statement if it has a space

2013-03-05 Thread eli m
On Tuesday, March 5, 2013 3:47:31 PM UTC-8, emile wrote: > On 03/05/2013 03:33 PM, eli m wrote: > > > On Tuesday, March 5, 2013 3:31:13 PM UTC-8, eli m wrote: > > >> Hi guys, i have a program like this: (A lot of code is not included) > > >> > > >> run = 0 > > >> > > >> while run == 0: > > >

Re: Input wont work with if statement if it has a space

2013-03-05 Thread emile
On 03/05/2013 03:33 PM, eli m wrote: On Tuesday, March 5, 2013 3:31:13 PM UTC-8, eli m wrote: Hi guys, i have a program like this: (A lot of code is not included) run = 0 while run == 0: function = raw_input("Type in a function:") if function == "Example": whenever function isn't _

Re: Input wont work with if statement if it has a space

2013-03-05 Thread eli m
On Tuesday, March 5, 2013 3:31:13 PM UTC-8, eli m wrote: > Hi guys, i have a program like this: (A lot of code is not included) > > run = 0 > > while run == 0: > >raw_input("Type in a function:") > >if function == "Example": > > print ("Hello World!") > >else: > > pri

Input wont work with if statement if it has a space

2013-03-05 Thread eli m
Hi guys, i have a program like this: (A lot of code is not included) run = 0 while run == 0: raw_input("Type in a function:") if function == "Example": print ("Hello World!") else: print ("blah blah blah") The problem is that whenever i type in example with a space after it th