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

2013-09-07 Thread James Griffin
!-- On Fri  6.Sep'13 at  5:27:23 BST, mike johnson (pretor...@hotmail.com), 
wrote: 
> 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 temperature is ", Fahrenheit, " degrees Fahrenheit.")
> 
> 
> Main ()

[ ...]

> # 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 temperature is ", Fahrenheit, " degrees Fahrenheit.")
> 
> 
> Main ()

I'm sure this is homework. I had a peice of homework in my first year
Undergrad exactly like this. 

-- 


James Griffin: jmz at kontrol.kode5.net 

A4B9 E875 A18C 6E11 F46D  B788 BEE6 1251 1D31 DC38
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] python on ipad

2013-03-13 Thread James Griffin
[- Sun 10.Mar'13 at 16:42:59 -0500  Benjamin Fishbein :-]

> Hello. I wrote some python programs for my small business that I run on my 
> computer...macbook air. I'm planning to backpack around Mexico and perhaps 
> south america. I'll still be working though. Basically my computer does all 
> the work, I just need to have internet connections and run the programs, and 
> periodically click here and there.
> I don't want to take my macbook with me because I'd have anxiety that it'd 
> get stolen and I wouldn't have any fun.
> So I'm debating if I should get a cheap computer for a couple hundred bucks 
> and run the python scripts on it. I think this is possible because I hear the 
> code is the same whether it's mac or PC or whatever.
> Or I might take my ipad with me. Or just run it on my iphone.
> Do you know if it's possible to run python scripts on a ipad/iphone, and if 
> so how to do it?
> Thanks,
> Ben

An iPad will be far more atttractive to a thief than a laptop, Mac or 
otherwise. Just get a cheap laptop and put linux on it. You can use your python 
programs on that easily enough. 
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] First Python Test

2013-02-03 Thread James Griffin
--> Shall, Sydney  [2013-02-02 12:45:15 +]:

> Two free good text editors for the MAC are;
> 1. Komodo
> 2. Text Wrangler.
> hth
> Sydney

aquamacs is the correct gui version to use. There is also a gvim
binary available. Both emacs and vim are installed already on Mac
OS X but in text only versions, no GUI.

I have never used Komodo or Text Wrangler, or any other GUI editor
for that matter so I cannot comment on how good they are. I tend
to spend about 90% of my time using the command-line on my Mac, but
that's just my preference. Some people prefer GUI editors.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor