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
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
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
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
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.
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
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
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
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!
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
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
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:
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:
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
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
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
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
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
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
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
20 matches
Mail list logo