snip
I'll go further with this though, just to get the response.
Hypothetically, if I wanted AI(artificial imagination),
then I would want random thoughts that made sense, every once in a
while. So, I hypothesize that the first step
in Artificial Imagination, is random thoughts, and then they have
On Fri, Sep 3, 2010 at 9:57 PM, David Hutto wrote:
> First of all, I'll respond more thoroughly tomorrow, when I can review
> what you said more clearly, but for now I'll clarify.
>
> Here is the whole code that I'm using:
>
> http://pastebin.com/Ak8DFjrb
>
> On Fri, Sep 3, 2010 at 9:12 PM, Steven
First of all, I'll respond more thoroughly tomorrow, when I can review
what you said more clearly, but for now I'll clarify.
Here is the whole code that I'm using:
http://pastebin.com/Ak8DFjrb
On Fri, Sep 3, 2010 at 9:12 PM, Steven D'Aprano wrote:
> On Fri, 3 Sep 2010 12:24:00 pm David Hutto wr
On Sat, 4 Sep 2010 05:17:34 am Gregory, Matthew wrote:
> Hi all,
>
> Is there a guideline on where instance member variables should be set
> within a class?
The normal terminology used in Python is "attributes" instead of "member
variables", and "methods" rather than "member functions".
[...]
On Fri, 3 Sep 2010 12:24:00 pm David Hutto wrote:
> In the below function I'm trying to iterate over the lines in a
> textfile, and try to match with a regex pattern that iterates over
> the lines in a dictionary(not {}, but turns a text list of
> alphabetical words into a list using readlines()).
On Fri, Sep 3, 2010 at 2:51 PM, David Hutto wrote:
> On Thu, Sep 2, 2010 at 11:05 PM, David Hutto wrote:
>> I just added +'*' to select in re.search(select+'*', str(readfile[:])),
>> and it now shows the same in both.
>>
>> But if you have any input on modifications let me know.
>>
>> Thanks,
>>
Hi all,
Is there a guideline on where instance member variables should be set within a
class? That is, is it a bad idea to set self variables within private member
functions rather than returning them to the enclosing caller? Or should I
avoid calls to internal functions from other member fun
On Thu, Sep 2, 2010 at 11:05 PM, David Hutto wrote:
> I just added +'*' to select in re.search(select+'*', str(readfile[:])),
> and it now shows the same in both.
>
> But if you have any input on modifications let me know.
>
> Thanks,
> David
>
Still a problem. When I use the re.search(select+'*'
"Dipo Elegbede" wrote
you should type something like:
x = raw_input('Enter a Number: ')
x is a variable that takes whatever value you type in.
However, if it were python 2.6, type:
x = input('Enter a Number: ')
Actually the other way round.
input() for Python v 3 and raw_input() for Python
>From what I can understand, I think you are getting what you should
get. If you want the program to ask you for a number onput, i think
you should type something like:
x = raw_input('Enter a Number: ')
x is a variable that takes whatever value you type in.
This I feel should be the line if you are
On Fri, 3 Sep 2010 02:11:08 pm Colleen Glaeser wrote:
> Dear Python Tutors,
>
> I'm having trouble while typing a beginner program for python.
> Due to troublesome circumstances, I had to take pictures of the
> assignment sheet on my phone, and work from that.
> Although it is all clearly legible,
Hi,
Just guessing:
x = 12
print (2*x)
def greetings(no):
for i in range (no+1):
print ('Hello ')
print ('Greetings, earthling')
def regreet(no):
for j in range(no+1):
greetings(no)
prompt = "Enter a number: "
no = raw_input(prompt)
regreet(no)
It's not tested beca
"Colleen Glaeser" wrote
Although it is all clearly legible, I still think something with my
program
is not working.
Why, can you explain what you think should happen?
If I run the program in the shell, I should be getting something
that asks
for a number, and I need to try positive and ne
Dear Python Tutors,
I'm having trouble while typing a beginner program for python.
Due to troublesome circumstances, I had to take pictures of the assignment
sheet on my phone, and work from that.
Although it is all clearly legible, I still think something with my program
is not working.
If I run
14 matches
Mail list logo