Re: [Tutor] question about socket status

2008-07-24 Thread Monika Jisswel
if networking code is inside of the kernel then its from the kernel that you can get network information & nowhere else. (http://www.linuxdevcenter.com/pub/a/linux/2000/11/16/LinuxAdmin.html) I would just add that to see what ne

Re: [Tutor] Newbie

2008-07-24 Thread Andreas Kostyrka
On Wednesday 23 July 2008 22:04:57 Alan Gauld wrote: > ""Simón A. Ruiz"" <[EMAIL PROTECTED]> wrote > > > If what you expected was something like: > > > > Hello World! > > Here are ten numbers from 0 to 9 > > 0 1 2 3 4 5 6 7 8 9 Goodbye World! > > > > Then you want that final print statement to not

Re: [Tutor] Online class/education for Python?

2008-07-24 Thread Danyelle Gragsone
> > > You should be able to use the 1st edition of PPftAB to learn Python. > Pre-2.2 might have caused some minor problems, but 2.2 is okay. > > If you run into any problems, just post your problem code to the list, > with your platform info (GNU/Linux, Mac OS X, MS-Windows...) and > the version of

[Tutor] Check for file in different dirs

2008-07-24 Thread Timo
I want to check for a file in 3 directories. If the file is found in 1 of the dirs then do something, if the file was found in 2 or 3 dirs, then do something else. I know the paths and filename. How can this be done? ___ Tutor maillist - Tutor@python

Re: [Tutor] Check for file in different dirs

2008-07-24 Thread bob gailer
Timo wrote: I want to check for a file in 3 directories. If the file is found in 1 of the dirs then do something, if the file was found in 2 or 3 dirs, then do something else. I know the paths and filename. How can this be done? We like to give a hand and prefer not to write programs. So I s

Re: [Tutor] Check for file in different dirs

2008-07-24 Thread Alan Gauld
"Timo" <[EMAIL PROTECTED]> wrote I want to check for a file in 3 directories. If the file is found in 1 of the dirs then do something, if the file was found in 2 or 3 dirs, then do something else. I know the paths and filename. How can this be done? Lots of ways but one is to write a predica

[Tutor] Python Assistance!

2008-07-24 Thread yla116
Hi, this is my first time come to this website to ask about python question. I'm totally don't know how to do my last assignment.It is distance education class, and my taxt book DOES NOT show exactly information for me to do this assignment. There is my assignment, http://cmpt165.cs.sfu.ca/~ggbaker

Re: [Tutor] Python Assistance!

2008-07-24 Thread Danny Yoo
On Thu, Jul 24, 2008 at 12:54 PM, <[EMAIL PROTECTED]> wrote: > Hi, this is my first time come to this website to ask about python question. > I'm totally don't know how to do my last assignment.It is distance education > class, and my taxt book DOES NOT show exactly information for me to do this >

Re: [Tutor] Python Assistance!

2008-07-24 Thread Alan Gauld
<[EMAIL PROTECTED]> wrote I'm totally don't know how to do my last assignment.It is distance education We don't do homeworks but we can offer suggestions and advice. However you will need to solve the problem yourself. There is my assignment, http://cmpt165.cs.sfu.ca/~ggbaker/examples/cheque

[Tutor] Newbie

2008-07-24 Thread Sam Last Name
mmmkay its me again Iv'e been learning alot and have found so much joy in making programs that solve equations using the input function. I need Help on this though. Im trying to make a program where it solves the quadratic formula when you put in the variables. Here wats i got so far. :) and als

Re: [Tutor] Newbie

2008-07-24 Thread John Fouhy
On 25/07/2008, Sam Last Name <[EMAIL PROTECTED]> wrote: > Here wats i got so far. :) and also, is there a function for square root? Have a look at the math module. (you can also do fractional exponentiation.. remember, sqrt(x) is the same as x**0.5) -- John.

Re: [Tutor] Newbie

2008-07-24 Thread John Fouhy
On 25/07/2008, Sam Last Name <[EMAIL PROTECTED]> wrote: > > Okay thanks still didnt get it working but one step closer. Take a look at > this > > > a = input("What is the variable a?") > b = input("What is the variable b?") > c = input("What is the variable c?") > print -b + [((b*b - 4*a*c)**0.5)/(

[Tutor] Tutor Newbie

2008-07-24 Thread Sam Last Name
Hey guys, need some info on "programs" :) Heres a Very simple Script that works with basically any numbers. width = input("What is the Width?") length = input("What is the Length?") area = width*length print area # my question is what would it take (programs, extra stuff in script, ect..) to

Re: [Tutor] Newbie

2008-07-24 Thread jar_head
ight have a problem with the grouping if you leave it as it is. It'd be better written as this: print (-b + /sqrt ((b*b) - (4*a*c))/(2*a)) I don't know the function for square root either, but I'm sure one of the others will answer that for you. -Jay > >

Re: [Tutor] Newbie

2008-07-24 Thread Steve Willoughby
-- next part -- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/tutor/attachments/20080724/b02787c9/attachment.htm> -- ___ Tutor maillist - Tuto

Re: [Tutor] Newbie

2008-07-24 Thread Kent Johnson
On Thu, Jul 24, 2008 at 10:17 PM, John Fouhy <[EMAIL PROTECTED]> wrote: > On 25/07/2008, Sam Last Name <[EMAIL PROTECTED]> wrote: >> >> Traceback (most recent call last): >> File "C:\Python\Script2.py", line 4, in >> print -b + [((b*b - 4*a*c)**0.5)/(2*a)] >> ValueError: negative number cann