Re: [Tutor] why do i keep getting syntax errors in python when this runs

2013-09-06 Thread Joel Goldstick
On Fri, Sep 6, 2013 at 12:27 AM, mike johnson wrote: > can you please help me figure out why this isnt working thanks You have tthree problems: > # convert.py > # this program is used to convert Celsius temps to Fahrenheit > # By: James Michael Johnson > > Def main (): The keyword is def, not D

Re: [Tutor] fit data to equation

2013-09-06 Thread Tanmaya Meher
You can try the below tutorial. 1. http://wiki.scipy.org/Cookbook/FittingData 2. http://people.duke.edu/~ccc14/pcfb/analysis.html Also, take a look at the below curve fitting tool from optimization tool set of scipy. I think it will help you better and with ease. http://docs.scipy.org/doc/scipy

Re: [Tutor] (no subject)

2013-09-06 Thread Steven D'Aprano
On Fri, Sep 06, 2013 at 02:52:51PM -0500, Sammy Cornet wrote: > on my Interpreter windows, as my first attempt, I wrote "hello world" > but it keep telling me this: SyntaxError: invalid syntax > Can you help me please? Yes. The first, and most important, tool in your toolbox as a programmer is

Re: [Tutor] (no subject)

2013-09-06 Thread Alan Gauld
On 06/09/13 20:52, Sammy Cornet wrote: on my Interpreter windows, as my first attempt, I wrote "hello world" but it keep telling me this: SyntaxError: invalid syntax Can you help me please? Python doesn't understand what "hello world" means. It's just a value, like 42 or True to python. So py

Re: [Tutor] why do i keep getting syntax errors in python when this runs

2013-09-06 Thread Alan Gauld
On 06/09/13 05:27, mike johnson wrote: can you please help me figure out why this isnt working thanks The fundamental problem is that Python is case sensitive so Def and def are two different words. As are Main and main and Print and print. Also Python cares about spacing. You need to indent y

[Tutor] (no subject)

2013-09-06 Thread Sammy Cornet
on my Interpreter windows, as my first attempt, I wrote "hello world" but it keep telling me this: SyntaxError: invalid syntax Can you help me please? ___ Tutor maillist - Tutor@python.org To unsubscribe or ch

Re: [Tutor] OT: Coffeescript and Python

2013-09-06 Thread Japhy Bartlett
I worked on a project that used cofeescript with Django. You basically have to know javascript to debug it properly, so it didn't really save our team any time and we got rid of it as soon as we could. Obviously that's just anecdotal, YMMV! On Fri, Sep 6, 2013 at 5:47 AM, Alan Gauld wrote: > T

Re: [Tutor] why do i keep getting syntax errors in python when this runs

2013-09-06 Thread Prasad, Ramit
Joel Goldstick wrote: > On Fri, Sep 6, 2013 at 12:27 AM, mike johnson wrote: > > can you please help me figure out why this isnt working thanks > > You have tthree problems: > > > # convert.py > > # this program is used to convert Celsius temps to Fahrenheit > > # By: James Michael Johnson > > >

[Tutor] why do i keep getting syntax errors in python when this runs

2013-09-06 Thread mike johnson
can you please help me figure out why this isnt working thanks # convert.py # this program is used to convert Celsius temps to Fahrenheit # By: James Michael Johnson Def main (): Celsius = float (input ("What is the Celsius temperature? ")) Fahrenheit = 9.0 / 5.0 * Celsius + 32 Print ("The tempera

Re: [Tutor] OT: Coffeescript and Python

2013-09-06 Thread Emile van Sebille
On 9/6/2013 3:47 AM, Alan Gauld wrote: This is somewhat off topic so replies offlist may be appropriate. I can fix that. :) Are you familiar with pyjs, which provides python to javascript capabilities? (see http://pyjs.org/) Is there any reason to prefer one over the other? Emile I've

Re: [Tutor] How to unpack python-dateutil-2.0.tar.gz

2013-09-06 Thread nelsonpaixao
Richard D. Moores gmail.com> writes: > > Python 3.2.3 64 bit > MS Windows 7 Home Premium 64-bit SP1 > > I see python-dateutil recommended here from time to time, so I thought > I'd try it out. I downloaded python-dateutil-2.1.tar.gz from > http://pypi.python.org/pypi/python-dateutil but have fo

Re: [Tutor] fit data to equation

2013-09-06 Thread Oscar Benjamin
On 6 September 2013 13:19, I. Alejandro Fleischer wrote: > > It's a variation , of a physical value ("y") in time ("x") (while > cooling) , you have the data measured (xi, yi), but not from x=0. I need to > extrapolate "y" to "x=0", by that equation. > > I know the very basics about statistics,

Re: [Tutor] fit data to equation

2013-09-06 Thread I. Alejandro Fleischer
Dear Alan and Oscar Thank you. I'll try to be more accurate: What Oscar wrote is exactly the situation: > "I'm going to assume that you have some data that gives paired > measurements of two quantities e.g. (x1, y1), (x2, y2), ... (xn, yn). > You want to find parameters a, b, and k so that y

[Tutor] OT: Coffeescript and Python

2013-09-06 Thread Alan Gauld
This is somewhat off topic so replies offlist may be appropriate. I've just come across coffeescript(*) and started playing with it. It seems to share a lot with Python and as such seems like a good replacement for Javascript in client side web code. I'm wondering if anyone here has used coffee

Re: [Tutor] equation solving (was: Re: Tutor Digest, Vol 114, Issue 73)

2013-09-06 Thread Oscar Benjamin
On 5 September 2013 21:59, Alan Gauld wrote: > On 05/09/13 20:13, I. Alejandro Fleischer wrote: >> >> I have a set of data to fit to a custom equation, y=a+b*exp(k*x), would >> you advice me on the how to, or tutorial? > > Can be be more precise? The more specific you are the easier it is > to giv