Newbie Question

2006-06-19 Thread Saint Malo
I am new to programming, and I've chosen python to start with. I wrote a simple program that asks several questions and assings each one of them a variable via raw_input command. I then combined all the variables into one like this a = b + c + d. After this I wrote these values to a file. What I

Re: Newbie Question

2006-06-19 Thread Saint Malo
. If i ask it to find blue and brown, i just want it to return those two values. Andrew Robert wrote: > Saint Malo wrote: > > I am new to programming, and I've chosen python to start with. I wrote > > a simple program that asks several questions and assings each one of >

Re: Newbie Question

2006-06-19 Thread Saint Malo
ebyScrivener wrote: > > Saint Malo wrote: > > > If the program searches for blue, i just want it to print blue > > > > Huh? Tell it to print whatever you want. > > > > for line in file: > > if 'blue' in line: > > print '