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
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
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
"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
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