Re: [Tutor] Communicating Between Programs Using Raw Inputs (con'd)

2011-06-20 Thread Christopher King
Also, we tried removing the raw input, but it wouldn't print correct On Sat, Jun 18, 2011 at 9:55 PM, aditya wrote: > > > On Sat, Jun 18, 2011 at 9:35 PM, Jacob Bender wrote: > >> Dear Tutors, >> >> Alright, I'm using linux (ubuntu) and I took all of your advice and I got >> something that works

Re: [Tutor] Communicating Between Programs Using Raw Inputs (con'd)

2011-06-20 Thread Christopher King
Well, that's a trick me and jake learned in a book to stop the program from changing. On Saturday, June 18, 2011, aditya wrote: > > > On Sat, Jun 18, 2011 at 9:35 PM, Jacob Bender wrote: > > Dear Tutors, > > Alright, I'm using linux (ubuntu) and I took all of your advice and I got > something t

Re: [Tutor] Communicating Between Programs Using Raw Inputs (con'd)

2011-06-18 Thread aditya
On Sat, Jun 18, 2011 at 9:35 PM, Jacob Bender wrote: > Dear Tutors, > > Alright, I'm using linux (ubuntu) and I took all of your advice and I got > something that works and doesn't work at the same time. Here's the source > code for my two programs called Lock and Key: > > *Lock.py: * > > password

Re: [Tutor] Communicating Between Programs Using Raw Inputs (con'd)

2011-06-18 Thread Alan Gauld
"Jacob Bender" wrote *Lock.py: * password = "a" psswd_try = raw_input("What's the password? ") if psswd_try == password: print "correct!!!" raw_input() else: print "wrong" raw_input() * Key.py*: import sys sys.stdout.write("a") And all went well except for an EOF error caused

[Tutor] Communicating Between Programs Using Raw Inputs (con'd)

2011-06-18 Thread Jacob Bender
Dear Tutors, Alright, I'm using linux (ubuntu) and I took all of your advice and I got something that works and doesn't work at the same time. Here's the source code for my two programs called Lock and Key: *Lock.py: * password = "a" psswd_try = raw_input("What's the password? ") if psswd_try