[Tutor] Communicating Between Programs Using Raw Inputs

Jacob Bender benderjacob44 at gmail.com
Tue Jun 14 23:39:03 CEST 2011


Dear Python Tutors,

I was wondering how to break into my one program I made using brute force
methods. Here's the code:

password = "Helloworld"
try= raw_input("What's the password?")
while try != password:
     try = raw_input("Incorrect, what's the password?")

I know how to do it in the command line, but not through another program.
Generating the random tries for the password isn't the issue, but entering
the password(s) in between the two programs is an issue because I don't know
how to make programs communicate through raw inputs.

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110614/0c5ecf31/attachment.html>


More information about the Tutor mailing list