http://www.meetup.com/PyRochesterMN
First meeting planned for Thu 28th January 2016
--
Jonathan Hartley
tart...@tartley.com
+1 507-513-1101
--
https://mail.python.org/mailman/listinfo/python-list
On 2/15/2013 4:45 PM, Deborah Piotrowski wrote:
I am very new to Python, I am using the e-book "Python Programming for
the Absolute Beginner" and am starting with a simple "Game Over"
Program. This is the code:which is extremely simple!\
print"Game Over" raw_input("\n\nPress Enter Key to exit")
WAIT!! It works now, I just needed to save it in script.
Thank you guys so much!!
My best regards, Nicholas
On Fri, Feb 15, 2013 at 4:21 PM, Joel Goldstick wrote:
> Print needs parense in python 3
> On Feb 15, 2013 5:48 PM, "Bob Brusa" wrote:
>
>>
>>
>> Am Freitag, 15. Februar 2013 schrieb Joel
Print needs parense in python 3
On Feb 15, 2013 5:48 PM, "Bob Brusa" wrote:
>
>
> Am Freitag, 15. Februar 2013 schrieb Joel Goldstick :
>
>>
>>
>>
>> On Fri, Feb 15, 2013 at 4:45 PM, Deborah Piotrowski <
>> spiceninj...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>>
>>> I am very new to Python, I am using
In Deborah Piotrowski
writes:
> print "Game Over"
> input("\n\nPress the Enter Key to Exit")
> Syntax Error: Invalid Syntax
You're probably using Python version 3, but the book was written for
version 2. The print statement is handled a bit differently in version 3.
Change your print statem
print uses the new syntax e.g. print("example") in 3.r
Sent from my BlackBerry® wireless device
-Original Message-
From: Deborah Piotrowski
Date: Fri, 15 Feb 2013 16:08:17
To: Bob Brusa
Cc: Joel Goldstick;
python-list@python.org
Subject: Re: New User-Need-Help
print "G
print "Game Over"
input("\n\nPress the Enter Key to Exit")
Syntax Error: Invalid Syntax
On Fri, Feb 15, 2013 at 3:48 PM, Bob Brusa wrote:
>
>
> Am Freitag, 15. Februar 2013 schrieb Joel Goldstick :
>
>
>>
>>
>> On Fri, Feb 15, 2013 at 4:45 PM, Deborah Piotrowski <
>> spiceninj...@gmail.com> wrot
In Deborah Piotrowski
writes:
> This is the code:which is extremely simple!
> print"Game Over" raw_input("\n\nPress Enter Key to exit")
> That's it.
Does your code really have everything on one line, as you posted? If so,
that's the problem. It should be broken into two separate lines:
Am Freitag, 15. Februar 2013 schrieb Joel Goldstick :
>
>
>
> On Fri, Feb 15, 2013 at 4:45 PM, Deborah Piotrowski <
> spiceninj...@gmail.com 'spiceninj...@gmail.com');>> wrote:
>
>> Hi,
>>
>>
>> I am very new to Python, I am using the e-book "Python Programming for
>> the Absolute Beginner" and a
On Fri, Feb 15, 2013 at 4:45 PM, Deborah Piotrowski
wrote:
> Hi,
>
>
> I am very new to Python, I am using the e-book "Python Programming for the
> Absolute Beginner" and am starting with a simple "Game Over" Program. This
> is the code:which is extremely simple!
> print"Game Over" raw_input("\n\
Hi,
I am very new to Python, I am using the e-book "Python Programming for the
Absolute Beginner" and am starting with a simple "Game Over" Program. This
is the code:which is extremely simple!
print"Game Over" raw_input("\n\nPress Enter Key to exit")
That's it. It is supposed to bring up a windo
for beginners :
http://openbookproject.net/thinkcs/python/english2e/index.html
python cookbook - 2 by alex martelli is fantastic if you have your basics
cleared.
On Tue, Mar 2, 2010 at 8:09 AM, Niranjan Kumar Das wrote:
> Hello Group,
> I am starting to programme in python 1st time. Just thought
Hello Group,
I am starting to programme in python 1st time. Just thought i will ask the
group members about some well known useful books. I am looking for books at
two level.
a) For beginers
b) For Advaced user
Appreciate your help and suggestion in the matter.
Thanks,
Niranjan
--
http://mail.p
Sean DiZazzo writes:
> On Dec 10, 5:37 pm, Sean DiZazzo wrote:
> > I'm finally getting around to trying out the python-daemon module
> > and have hit a wall. I'm trying to set up logging inside of the
> > "with daemon.DaemonContext" block. But when I try to use a logger
> > inside the block it
> Sorry, I think you didn't get my later post -- than in fact was from a
> month ago...
> Seehttp://article.gmane.org/gmane.comp.python.general/613312/
> urllib2 should handle a 302 redirect automatically.
>
> --
> Gabriel Genellina
I went to the link you provided and sure enough there was your
En Wed, 04 Mar 2009 14:36:21 -0200, JohnV escribió:
Couldn't figure out the proper usage of the urllib2 functions to fix
the 302 Found problem, but what I did was change the URL to a php page
and httplib.HTTPConnection() worked fine when a "POST" was sent to
that page. So, when I have learned
On Mar 2, 10:13 pm, JohnV wrote:
> Thanks for your suggestion, but I am not able to get it to work for
> me.
>
> My original script was:
>
> f = open('C:\Users\Owner\Desktop\mydata.txt', 'r')
> read_data = f.read()
>
> f.close()
>
> import httplib, urllib
> params = urllib.urlencode({'textarea1':
En Tue, 03 Mar 2009 04:13:46 -0200, JohnV escribió:
Thanks for your suggestion, but I am not able to get it to work for
me.
My original script was:
f = open('C:\Users\Owner\Desktop\mydata.txt', 'r')
read_data = f.read()
f.close()
\ is the escape character in Python. You must double it when
Thanks for your suggestion, but I am not able to get it to work for
me.
My original script was:
f = open('C:\Users\Owner\Desktop\mydata.txt', 'r')
read_data = f.read()
f.close()
import httplib, urllib
params = urllib.urlencode({'textarea1': read_data})
headers = {"Content-type": "application/x-
En Mon, 02 Mar 2009 23:02:10 -0200, JohnV escribió:
I have to run the program one time just to get the dynamically
generated redirect URL for the POST (it looks like this)
The document has moved http://www.thenational.us/pages/htmlos/
001863.1.059070780420726458">
I then paste the redirected U
I got it! You can see the code at the bottom of this post. Sorry for
three posts on this question.
I have to run the program one time just to get the dynamically
generated redirect URL for the POST (it looks like this)
The document has moved http://www.thenational.us/pages/htmlos/
001863.1.05907
Here is what var data collected:
302 Found
Found
The document has moved http://www.thenational.us/pages/
htmlos/001863.1.059070780420726458">here.
Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8b mod_mono/
2.2 FrontPage/5.0.2.2635 mod_bwlimited/1.4 mod_auth_passthrough/2.1
Server at thenation
I am using Python 2.5 r25:51908 MSC v.1318 32 bit (Intel) on wind32
I am totally new to Python and started yesterday going over a couple
of examples I found in the documentation which address a problem I am
trying to solve.
I have successfully opened a file and read the results adapting this
code
Hi ! This is my first message .
I new here . I like python , blender 3d and opengl and is a hobby for
me.
I have a site www.catalinfest.xhost.ro where i write about me and
python , blender ...
I hope learning more on this group .
Have a nice day !
--
http://mail.python.org/mailman/listinfo/pyth
' and matches[a][0]==1:
>
> > print " 1 1:0 2:0 3:0 4:0 5:0 6:0 7:0 8:0 9:0 10:0 11:1 12:0
> > 13:0 14:0 15:0 16:0 17:0 18:0 19:0 20:0 21:0"
> > if matches[a][1]=='N' and matches[a][0]==1:
>
> > print "
9:0 10:0 11:0 12:0
> 13:1 14:0 15:0 16:0 17:0 18:0 19:0 20:0 21:0"
> if matches[a][1]=='Q' and matches[a][0]==1:
>
> print " 1 1:0 2:0 3:0 4:0 5:0 6:0 7:0 8:0 9:0 10:0 11:0 12:0
> 13:0 14:1 15:0 16:0 17:0 18:0 19:0 20:0 21:0"
> if matc
drjekil wrote:
> I have done something so far about that problem,but its not the good way to
> do it
>
> need ur comments about that
>
Well, at least you can see that your approach is not satisfactory, so
that means you have some sense of what's good and bad programming/
>
> from string im
]==1:
print "1 1:0 2:0 3:0 4:0 5:0 6:0 7:0 8:0 9:0 10:0 11:0 12:0
13:0 14:0 15:0 16:1 17:0 18:0 19:0 20:0 21:0"
if matches[a][1]=='T' and matches[a][0]==1:
print "1 1:0 2:0 3:0 4:0 5:0 6:0 7:0 8:0 9:0 10:0 11:0 12:0
13:0 14:0 15
drjekil (or should that be mrhyde?):
Once again, *please* make sure you reply to the list. Personal replies
are much less likely to get attention.
regards
Steve
drjekil sayer wrote:
> u got it!
> thats what i am trying to explain with my bad english!
> thanks once again.
>
>
> On 4/9/08, *S
u got it!
thats the thing i am trying to explain by my bad english!
thanks for the help.
--
View this message in context:
http://www.nabble.com/new--user-needs-help%21-tp16571823p16578029.html
Sent from the Python - python-list mailing list archive at Nabble.com.
--
http://mail.python.org
[EMAIL PROTECTED] wrote:
> thanks!
Please keep all replies on the list: somebody else may also wish to help
(and they will also pick up mistakes I make ;-)
> I am working with a text filelooks like this:
> #NAME AA TOPO ACCESS DSSP STRIDE Z-COORD
> 1lghB A i 79.8 H H -24.58
> 1lghB V i 79.6 H H
Tim Chase wrote:
>> f = open("/tmp/data.txt", 'w')
>>
>> will open that file.
>>
>> You can throw the first line away with
>>
>> headings = f.next()
>>
>> Then you can loop over the rest with
>>
>> for name, aa, topo, access, dssp, stride, z in file:
>> #
>> # Then process each line here
> f = open("/tmp/data.txt", 'w')
>
> will open that file.
>
> You can throw the first line away with
>
> headings = f.next()
>
> Then you can loop over the rest with
>
> for name, aa, topo, access, dssp, stride, z in file:
> #
> # Then process each line here
Small caveat here...Ste
On Apr 8, 3:38 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
> drjekil wrote:
> > I am totally new in biopython and its my first program.so may be i am asking
> > stupid question.
>
> New? Most questions are sensible.
>
> Let's suppose that the four lines you give below are stored in a text
> file ca
ave to cheek all the lins in the file and print it.
> u have to tell simply otherwise i cant understand even,so stupid am i!
> I will be really greatful!Thanks in advance
> --
> View this message in
> context:http://www.nabble.com/new--user-needs-help%21-tp16571823p16571823.html
> S
drjekil wrote:
> I am totally new in biopython and its my first program.so may be i am asking
> stupid question.
New? Most questions are sensible.
Let's suppose that the four lines you give below are stored in a text
file called "/tmp/data.txt".
> I am working with a text filelooks like this:
>
!Thanks in advance
--
View this message in context:
http://www.nabble.com/new--user-needs-help%21-tp16571823p16571823.html
Sent from the Python - python-list mailing list archive at Nabble.com.
--
http://mail.python.org/mailman/listinfo/python-list
advance
--
View this message in context:
http://www.nabble.com/new--user-needs-help%21-tp16571784p16571784.html
Sent from the Python - python-list mailing list archive at Nabble.com.
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 7, 3:30 pm, [EMAIL PROTECTED] wrote:
> On Feb 7, 11:15 am, Henry Hollenberg <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello,
>
> > I have written a script that uses environment variables set during
> > a particular users login in ".bash_profile" and ".profile".
>
> > I have changed to that users
On Feb 7, 11:15 am, Henry Hollenberg <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have written a script that uses environment variables set during
> a particular users login in ".bash_profile" and ".profile".
>
> I have changed to that users uid and gid in my python script using:
>
> import os
> os.se
Hello,
I have written a script that uses environment variables set during
a particular users login in ".bash_profile" and ".profile".
I have changed to that users uid and gid in my python script using:
import os
os.setegid
os.setgid
os.seteuid
os.setuid
but I still am not picking up the needed
En Thu, 08 Feb 2007 14:20:57 -0300, Shawn Milo <[EMAIL PROTECTED]>
escribió:
> On 8 Feb 2007 09:05:51 -0800, Gabriel Genellina <[EMAIL PROTECTED]>
> wrote:
>> On 8 feb, 12:41, "Shawn Milo" <[EMAIL PROTECTED]> wrote:
>>
>> > I have come up with something that's working fine. However, I'm fairly
On Feb 8, 3:26 pm, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> Shawn Milo a écrit :
>
>
>
> > To the list:
>
> > I have come up with something that's working fine. However, I'm fairly
> > new to Python, so I'd really appreciate any suggestions on how this
> > can be made more Pythonic.
>
> > T
Shawn Milo a écrit :
> To the list:
>
> I have come up with something that's working fine. However, I'm fairly
> new to Python, so I'd really appreciate any suggestions on how this
> can be made more Pythonic.
>
> Thanks,
> Shawn
>
>
>
>
>
>
> Okay, here's what I have come up with:
>
>
>
On 2/8/07, Jussi Salmela <[EMAIL PROTECTED]> wrote:
> Shawn Milo kirjoitti:
> > To the list:
> >
> > I have come up with something that's working fine. However, I'm fairly
> > new to Python, so I'd really appreciate any suggestions on how this
> > can be made more Pythonic.
> >
> > Thanks,
> > Shaw
Shawn Milo kirjoitti:
> To the list:
>
> I have come up with something that's working fine. However, I'm fairly
> new to Python, so I'd really appreciate any suggestions on how this
> can be made more Pythonic.
>
> Thanks,
> Shawn
>
>
>
>
>
>
> Okay, here's what I have come up with:
What f
On 8 Feb 2007 09:05:51 -0800, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> On 8 feb, 12:41, "Shawn Milo" <[EMAIL PROTECTED]> wrote:
>
> > I have come up with something that's working fine. However, I'm fairly
> > new to Python, so I'd really appreciate any suggestions on how this
> > can be made
On 8 feb, 12:41, "Shawn Milo" <[EMAIL PROTECTED]> wrote:
> I have come up with something that's working fine. However, I'm fairly
> new to Python, so I'd really appreciate any suggestions on how this
> can be made more Pythonic.
A few comments:
You don't need the formatDatePart function; delete
To the list:
I have come up with something that's working fine. However, I'm fairly
new to Python, so I'd really appreciate any suggestions on how this
can be made more Pythonic.
Thanks,
Shawn
Okay, here's what I have come up with:
#! /usr/bin/python
import sys
import re
month
={'JAN':
James a écrit :
> On Feb 7, 4:59 pm, "Shawn Milo" <[EMAIL PROTECTED]> wrote:
>
(snip)
>>I'm pretty new to Python myself, but if you'd like help with a
>>Perl/regex solution, I'm up for it. For that matter, whipping up a
>>Python/regex solution would probably be good for me. Let me know.
>>
>>Shaw
On 7 Feb 2007 11:31:32 -0800, James <[EMAIL PROTECTED]> wrote:
> I have this code:
...
> infile.close
> outfile.close
...
> 1. the outfile doesn't complete with no error message. when I check
> the last line in the python interpreter, it has read and processed the
> last line, but the output file
On Feb 7, 4:59 pm, "Shawn Milo" <[EMAIL PROTECTED]> wrote:
> On 7 Feb 2007 11:31:32 -0800, James <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello,
>
> > I'm a newbie to Python & wondering someone can help me with this...
>
> > I have this code:
> > --
> > #! /usr/bin/python
>
> >
On 7 Feb 2007 11:31:32 -0800, James <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm a newbie to Python & wondering someone can help me with this...
>
> I have this code:
> --
> #! /usr/bin/python
>
> import sys
>
> month ={'JAN':1,'FEB':2,'MAR':3,'APR':4,'MAY':5,'JUN':6,'JUL':7
James a écrit :
> Hello,
>
> I'm a newbie to Python & wondering someone can help me with this...
>
> I have this code:
> --
> #! /usr/bin/python
>
> import sys
>
> month ={'JAN':1,'FEB':2,'MAR':3,'APR':4,'MAY':5,'JUN':6,'JUL':7,'AUG':
> 8,'SEP':9,'OCT':10,'NOV':11,'DEC':
Hello,
I'm a newbie to Python & wondering someone can help me with this...
I have this code:
--
#! /usr/bin/python
import sys
month ={'JAN':1,'FEB':2,'MAR':3,'APR':4,'MAY':5,'JUN':6,'JUL':7,'AUG':
8,'SEP':9,'OCT':10,'NOV':11,'DEC':12}
infile=file('TVA-0316','r')
outfile=
thatchmatic wrote:
> I just downloaded and I think installed python. I am not sure if I
> did cause it does'nt respond to the commands that the read me file
> told me to use. Also can someone suggest a trial program I can maybe
> write for fun?
>
> Thanks.
>
>
>
1: http://www.python.org/do
On Sunday 23 October 2005 03:46, thatchmatic wrote:
> I just downloaded and I think installed python. I am not sure if I
> did cause it does'nt respond to the commands that the read me file
> told me to use. Also can someone suggest a trial program I can maybe
> write for fun?
Try http://diveint
"thatchmatic" wrote:
> I just downloaded and I think installed python. I am not sure if I
> did cause it does'nt respond to the commands that the read me file
> told me to use. Also can someone suggest a trial program I can maybe
> write for fun?
what happens when you type
python
at a com
I just downloaded and I think installed python. I am not sure if I
did cause it does'nt respond to the commands that the read me file
told me to use. Also can someone suggest a trial program I can maybe
write for fun?
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
59 matches
Mail list logo