Re: [Tutor] Tutor Digest, Vol 77, Issue 3

2010-07-02 Thread Jacob Bender
Instead of using "find" you could use a for loop. Explore what I mean in the attachment. If you have IDLE you can look at the programming in it. On Thu, Jul 1, 2010 at 11:58 PM, wrote: > Send Tutor mailing list submissions to >tutor@python.org > > To subscribe or unsubscribe via the Worl

[Tutor] System Window

2010-07-19 Thread Jacob Bender
I was wondering if there was a way to program a new window using Tkinter so that a one-billion digit number could fit, instead of in the system window, which dumps numbers once they fill up the screen. I know that it would take me days to read all of the numbers, but that is not my intention. Thank

[Tutor] LCM

2010-10-20 Thread Jacob Bender
Hello all, I was wondering if you could please help me with an issue I'm having with my program. I'm not fond of LCM(Least Common Multiples), and I decided to make a program that deals with them. Here's the code: thing = raw_input("What is the first number?\n\n") thing2 = raw_input("What is

[Tutor] (no subject)

2010-10-30 Thread Jacob Bender
Dear Tutors, I was wondering how I could make an AI for creatures that run around, and try to survive. Like polyworld. The real problem is making the code connection to make them learn. Can you please help? Thanks ___ Tutor maillist - Tutor@pytho

Re: [Tutor] (no subject)

2010-10-31 Thread Jacob Bender
Thanks, and I'm looking it over... On 10/30/10, Tino Dai wrote: > On Sat, Oct 30, 2010 at 6:44 PM, Jacob Bender > wrote: > >> Dear Tutors, >> >> I was wondering how I could make an AI for creatures that run >> around, and try to survive. Like polyworld.

[Tutor] (no subject)

2010-10-31 Thread Jacob Bender
I have a few more ?'s. I was trying to make a program for ubuntu that does one function: if ctrl + Alt + "t" is pressed, to shut down the computer. There are only two problems. I want it to run in the background, so nobody knows it's there. I do know how to make it run at startup, so that isn't a p

[Tutor] (no subject)

2011-01-19 Thread Jacob Bender
Dear tutors, I'm writing a program that can play Othello. Everything has been going fine, but there is a frequently occurring problem with printing the board with the squares filled in. Here's the code for the board: class board(object): def create_board(self): #Create a virtual board

Re: [Tutor] Tutor Digest, Vol 83, Issue 84

2011-01-19 Thread Jacob Bender
ls (Alan Gauld) 2. Re: Why super does not work ! (Alan Gauld) 3. (no subject) (Jacob Bender) 4. Re: (no subject) (Emile van Sebille) 5. Correct Path for tkinter using python3.1 on Ubuntu Maverick!! (Nevins Duret) 6. Re: OOP

[Tutor] Socket and Changing IP's

2011-02-28 Thread Jacob Bender
Tutors, I was looking into network programming, and I came across a problem. Socket programs need an IP address to function correctly, right? Well, IP addresses are always changing, so how should I go about making sockets that will work for an extended period of time? Thanks in advance!

Re: [Tutor] Socket and Changing IP's

2011-02-28 Thread Jacob Bender
On 2/28/2011 6:57 PM, Wayne Werner wrote: On Mon, Feb 28, 2011 at 5:49 PM, Jacob Bender <mailto:benderjaco...@gmail.com>> wrote: Tutors, I was looking into network programming, and I came across a problem. Socket programs need an IP address to function correctly, ri

[Tutor] Communicating Between Programs Using Raw Inputs

2011-06-14 Thread Jacob Bender
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

Re: [Tutor] Tutor Digest, Vol 88, Issue 53

2011-06-15 Thread Jacob Bender
tor digest..." > > > Today's Topics: > > 1. Communicating Between Programs Using Raw Inputs (Jacob Bender) > 2. Re: Break stament issue (Steven D'Aprano) > 3. Re: Communicating Between Programs Using Raw Inputs > (Steven D'Aprano) > 4. Re:

[Tutor] Communicating Between Programs Using A Raw Input (Cont'd)

2011-06-17 Thread Jacob Bender
Dear Tutors, Alright, I read up on stdin and stdout and I did find how useful they are. I did have one question however, and that is will I need to modify the code of my password program? Here's the code again: password = "Helloworld" try= raw_input("What's the password?") while try != password:

[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

[Tutor] Socket and Ports

2011-10-16 Thread Jacob Bender
I'm specifying where the information is supposed to come from and I'm not going to open my entire computer to the port, I'm ONLY allowing python to receive and transmit information. Please help. Thanks, Jacob Bender ___ Tutor maillist - T

Re: [Tutor] Socket and Ports

2011-10-16 Thread Jacob Bender
Thank you, and I'm not planning on executing any data I receive from anybody. So I should be pretty safe... On Sun, Oct 16, 2011 at 10:48 AM, Hugo Arts wrote: > On Sun, Oct 16, 2011 at 4:20 PM, bob gailer wrote: > > On 10/16/2011 8:28 AM, Jacob Bender wrote: > &g

[Tutor] Socket not connecting

2011-10-18 Thread Jacob Bender
Dear Tutors, I'm the same person who asked about intruders getting into my computer via socket. I tried copying a socket program from online, that worked on my computer, and executed perfectly. However, I did not open a port for python, but I do have an exception in my firewall. Anyhow, I cal

[Tutor] Sorting the parts of a dictionary into a list

2012-05-06 Thread Jacob Bender
Dear tutors, I'm trying to create a neural network program. Each neuron is in a dictionary and each of its connections and their strengths are in a nested dictionary. So {0:{1:4, 2:5}}, 1:{0:6}, 2:{1:2}} would mean that neuron 0 is connected to neuron 1 with a strength of 4. And it also means that

[Tutor] Sorting the Parts of a Dictionary into a List

2012-05-08 Thread Jacob Bender
Dear Tutors, My original email was this: "Dear tutors, I'm trying to create a neural network program. Each neuron is in a dictionary and each of its connections and their strengths are in a nested dictionary. So {0:{1:4, 2:5}}, 1:{0:6}, 2:{1:2}} would mean that neuron 0 is connected to neuron 1

[Tutor] Sorting a dictionary into a list cont'd

2012-05-08 Thread Jacob Bender
Oh, and here's the error my program returns when it runs: Traceback (most recent call last): File "/home/jacob/Dropbox/Shared_With_Chris_And_Logan/Jake's Programs/Yet_To_Work_On/Synaptic/synaptic.py", line 57, in neuron.smartest() File "/home/jacob/Dropbox/Shared_With_Chris_And_Logan/Jake