Re: First Program with Python!

2016-02-11 Thread mentificium
On Tuesday, February 9, 2016 at 5:55:30 AM UTC-8, Anita Goyal wrote: > > Start learning Python from basics to advance levels here... > https://goo.gl/hGzm6o Python experts please translate the webserver "Ghost" Perlmind into Python. http://ai.neocities.org/P6AI_FAQ.html -- https://mail.python.

Re: First program

2010-06-15 Thread Phil Hansen
On Tue, 15 Jun 2010 04:53:52 -0300, Gabriel Genellina wrote: > Looks like you created helloworld.py on Windows, or using > Windows-oriented tools (perhaps a samba drive? ftp from a Windows disk?) > Windows text files end each line with the \r\n sequence (CR LF, bytes > 0x0D 0x0A, ^M^J). Unix (and L

Re: First program

2010-06-15 Thread Gabriel Genellina
En Sat, 12 Jun 2010 06:03:43 -0300, Phil H escribió: Trying my hand with Python but have had a small hiccup. Reading 'A byte of Python' and created helloworld.py as directed. #!/usr/bin/python # filename : helloworld.py print 'Hello World' At the terminal prompt cd to the file location and r

Re: First program

2010-06-12 Thread Alister
On Sat, 12 Jun 2010 10:04:02 +, Phil H wrote: > On Sat, 12 Jun 2010 09:03:43 +, Phil H wrote: > >> Hi, >> Trying my hand with Python but have had a small hiccup. Reading 'A >> byte of Python' and created helloworld.py as directed. >> >> Any help appreciated >> Phil > > Thanks Peter & Ch

Re: First program

2010-06-12 Thread Phil Hansen
On Sat, 12 Jun 2010 12:51:18 +0200, Peter Otten wrote: > Phil H wrote: >> The script was written using Gedit on Ubuntu. > > Strange. Did you perhaps start with a file that you got from elsewhere > and modified that? Gedit may have left the CRs untouched then. > >> Cannot find a setting in Gedit

Re: First program

2010-06-12 Thread Peter Otten
Phil H wrote: > On Sat, 12 Jun 2010 09:03:43 +, Phil H wrote: > >> Hi, >> Trying my hand with Python but have had a small hiccup. Reading 'A byte >> of Python' and created helloworld.py as directed. >> >> Any help appreciated >> Phil > > Thanks Peter & Chris for your prompt replies. > The l

Re: First program

2010-06-12 Thread Phil H
On Sat, 12 Jun 2010 09:03:43 +, Phil H wrote: > Hi, > Trying my hand with Python but have had a small hiccup. Reading 'A byte > of Python' and created helloworld.py as directed. > > Any help appreciated > Phil Thanks Peter & Chris for your prompt replies. The line ending was the problem. The

Re: First program

2010-06-12 Thread Peter Otten
Phil H wrote: > Hi, > Trying my hand with Python but have had a small hiccup. > Reading 'A byte of Python' and created helloworld.py as directed. > > #!/usr/bin/python > # filename : helloworld.py > print 'Hello World' > > At the terminal prompt cd to the file location and run from the prompt.

Re: First program

2010-06-12 Thread Chris Rebert
On Sat, Jun 12, 2010 at 2:03 AM, Phil H wrote: > Hi, > Trying my hand with Python but have had a small hiccup. > Reading  'A byte of Python' and created helloworld.py as directed. > > #!/usr/bin/python > # filename : helloworld.py > print 'Hello World' > > At the terminal prompt cd to the file loc

RE: First Program Bug (Newbie)

2008-03-19 Thread Andreas Tawn
[snip] >> What is the square root function in python? > > There's one in the math module. Use the one in gmpy if you have it. Or raise to the power 1/power >>> 9**(1.0/2) 3.0 Also works for cube root, quad root etc. >>> 27**(1.0/3) 3.0 >>> 81**(1.0/4) 3.0 >>> 243**(1.0/5) 3.0 Cheers, Drea -

Re: First Program Bug (Newbie)

2008-03-18 Thread Mensanator
On Mar 18, 6:39 pm, oog1e <""benjamin.serrato\"@G(oog1e)MAIL.com"> wrote: > Hey, big thanks to you and Gabriel for replying. I couldn't quite follow > what you did yet. What is this 'gimpy' thing gmpy. It's the GMP (Gnu Multi-Precision) C-library in a Python wrapper. It supports arbitrary precisio

Re: First Program Bug (Newbie)

2008-03-18 Thread oog1e
Hey, big thanks to you and Gabriel for replying. I couldn't quite follow what you did yet. What is this 'gimpy' thing and where can I read about it? In response: First: Heh, I'm a little embarrassed I didn't notice this. I thought 'I only need to check up to half' but it didn't occur that base*

Re: First Program Bug (Newbie)

2008-03-17 Thread Jeff Schwab
Benjamin Serrato wrote: > P.S. What is the chance I'll get spam for using my real email address? Fendi Chef Bag in Zucca Print - Black Trim Replica AAA, Fake HandBags Cheap Chef Bag in Zucca Print - Black Trim Bags Link : http://www.cnreplicas.com/Fendi_1439.html Chef Bag in Zucca Print - Black

Re: First Program Bug (Newbie)

2008-03-17 Thread Gabriel Genellina
On 17 mar, 21:03, Benjamin Serrato <[EMAIL PROTECTED]> wrote: > I Found It!! The following was a post asking for help finding a bug. I > thought I needed help with my syntax, but just before sending I found > the bug on line 13. Line 13 should read: "base = 2". I would still > appreciate any comme

Re: First Program Bug (Newbie)

2008-03-17 Thread Daniel Fetchinson
> P.S. What is the chance I'll get spam for using my real email address? Exactly 1. > I currently don't get any so... ... you will get now. Sorry to disappoint you, but it's better to be prepared in advance than be shocked later :) Cheers, Daniel -- http://mail.python.org/mailman/listinfo/pyt

Re: First Program Bug (Newbie)

2008-03-17 Thread Mensanator
On Mar 17, 7:03 pm, Benjamin Serrato <[EMAIL PROTECTED]> wrote: > I Found It!! The following was a post asking for help finding a bug. I > thought I needed help with my syntax, but just before sending I found > the bug on line 13. Line 13 should read: "base = 2". I would still > appreciate any comm