Re: [Tutor] Translating R Code to Python-- reading in csv files, writing out to csv files

2012-05-20 Thread Massimo Di Stefano
Maybe this doc. http://mathesaurus.sourceforge.net/matlab-python-xref.pdf can help ? i found it useful. Massimo. Il giorno May 20, 2012, alle ore 2:42 AM, Martin A. Brown ha scritto: > > Benjamin, > > : Thanks Martin-- this is really great. My major question now is > : that I need to tra

Re: [Tutor] Translating R Code to Python-- reading in csv files, writing out to csv files

2012-05-20 Thread Joel Goldstick
On Sun, May 20, 2012 at 6:30 AM, Massimo Di Stefano wrote: > Maybe this doc. > > http://mathesaurus.sourceforge.net/matlab-python-xref.pdf > > can help ? > > i found it useful. > > Massimo. > > > Il giorno May 20, 2012, alle ore 2:42 AM, Martin A. Brown ha scritto: > >> >> Benjamin, >> >> : Thanks

Re: [Tutor] Translating R Code to Python-- reading in csv files, writing out to csv files

2012-05-20 Thread Dave Angel
Please don't top-post. You lose the context of what was written before, since it's now out of order. When replying to a message, quote the parts you're replying to, and put your comments AFTER the quotes. On 05/19/2012 05:07 PM, Benjamin G wrote: > Thanks, Joel. Here is a simple example of the

[Tutor] print 'hello world' - invalid syntax

2012-05-20 Thread Quidam S-enfuit
I have installed python on the windows 7 machine. (Tried 64 bit version also; same error). I tried print "Hello world" and  print 'hello world'.  It stated syntax error!?... Thanks. ===copied from python (interactive command) /pasted below== Python 3.2.3 (default, Apr 11 2012,

Re: [Tutor] print 'hello world' - invalid syntax

2012-05-20 Thread boB Stepp
On Sun, May 20, 2012 at 1:08 PM, Quidam S-enfuit wrote: > > I have installed python on the windows 7 machine. (Tried 64 bit version > also; same error). > I tried print "Hello world" and  print 'hello world'.  It stated syntax > error!?... > Thanks. > ===copied from python (interactive command

Re: [Tutor] print 'hello world' - invalid syntax

2012-05-20 Thread brian arb
http://docs.python.org/release/3.0.1/whatsnew/3.0.html The print statement has been replaced with a print() function, with keyword arguments to replace most of the special syntax of the oldprint statement (*PEP 3105*

Re: [Tutor] print 'hello world' - invalid syntax

2012-05-20 Thread Mark Lawrence
On 20/05/2012 19:08, Quidam S-enfuit wrote: I have installed python on the windows 7 machine. (Tried 64 bit version also; same error). I tried print "Hello world" and print 'hello world'. It stated syntax error!?... Thanks. ===copied from python (interactive command) /pasted below

Re: [Tutor] print 'hello world' - invalid syntax

2012-05-20 Thread Alan Gauld
On 20/05/12 19:08, Quidam S-enfuit wrote: I have installed python on the windows 7 machine. (Tried 64 bit version also; same error). I tried print "Hello world" and print 'hello world'. It stated syntax error!?... As others have said you are using version 2 syntax with version 3 Python. You n

[Tutor] While learning Py: To IDE or not to IDE?

2012-05-20 Thread boB Stepp
Programming background; 1975-1978: FORTRAN, BASIC, some machine language/assembler. 1988: A summer of FORTRAN. Post-1988: No programming until past 1.5 yr. FORTRAN was used during pursuit of physics degree. Others while playing around developing games for minicomputers. Structured programming para

[Tutor] Teaching an 8-year-old programming.

2012-05-20 Thread boB Stepp
This is, in a sense, a related question to the ones I just posted. While observing me studying programming, my son has become interested in learning how to program as well. I have given him a very old Gateway PC to play around with. It was new when W95 came out. I have started him out with QBASIC,

Re: [Tutor] Teaching an 8-year-old programming.

2012-05-20 Thread Devin Jeanpierre
I've heard remarkable things about http://www.programbydesign.org/ , but it's aimed at students a little older. Its design might help you; although, it also probably depends on motivation / what you want to teach. Anyway, that's the best I can offer. Good luck! It sounds like you're in for a fun t

Re: [Tutor] Teaching an 8-year-old programming.

2012-05-20 Thread boB Stepp
On Sun, May 20, 2012 at 4:15 PM, Devin Jeanpierre wrote: > I've heard remarkable things about http://www.programbydesign.org/ , > but it's aimed at students a little older. Its design might help you; > although, it also probably depends on motivation / what you want to > teach. > > Anyway, that's

Re: [Tutor] While learning Py: To IDE or not to IDE?

2012-05-20 Thread Brian van den Broek
On 20 May 2012 23:04, "boB Stepp" wrote: > Goals: Learn Python. While learning Python, learn all of the good > C.Sc. stuff that I should have learned the first go-around, Learn Java > and C/C++. Reevaluate. > > Finally to the question: With the stated goals above, would it be > better to inv

Re: [Tutor] While learning Py: To IDE or not to IDE?

2012-05-20 Thread boB Stepp
On Sun, May 20, 2012 at 4:44 PM, Brian van den Broek wrote: > These are close to religious questions :-) > > With you polyglot agenda, I would say you would be much better off to learn > a powerful multipurpose editor well than to try to find the best of breed of > each class of special purpose t

Re: [Tutor] Teaching an 8-year-old programming.

2012-05-20 Thread Mark Lybrand
Have you considered this book: http://www.amazon.com/Hello-World-Computer-Programming-Beginners/dp/1933988495 Mark On Sun, May 20, 2012 at 2:41 PM, boB Stepp wrote: > On Sun, May 20, 2012 at 4:15 PM, Devin Jeanpierre > wrote: >> I've heard remarkable things about http://www.programbydesign.org

Re: [Tutor] While learning Py: To IDE or not to IDE?

2012-05-20 Thread Leam Hall
On 05/20/2012 06:19 PM, boB Stepp wrote: On Sun, May 20, 2012 at 4:44 PM, Brian van den Broek I am an emacist, myself. But some of my best friends are vimists. Will pray for your soul... But since you brought it up, I'll ask a somewhat more general question: Why do you prefer an editor inste

Re: [Tutor] Teaching an 8-year-old programming.

2012-05-20 Thread Robert Sjoblom
>> I am currently thinking about "Invent Your Own Computer Games with >> Python" by Al Sweigart. [snip] >> Has anyone experience using this book? "Snake wrangling for kids" is pretty good for teaching Python; it's also free (which is a bonus): http://www.briggs.net.nz/snake-wrangling-for-kids.html

Re: [Tutor] Teaching an 8-year-old programming.

2012-05-20 Thread David Abbott
On Sun, May 20, 2012 at 6:28 PM, Mark Lybrand wrote: > Have you considered this book: > > http://www.amazon.com/Hello-World-Computer-Programming-Beginners/dp/1933988495 > > Mark [snip] Another great book I really enjoyed it; http://www.amazon.com/Python-Programming-Absolute-Beginner-Edition/dp/143

Re: [Tutor] While learning Py: To IDE or not to IDE?

2012-05-20 Thread Alan Gauld
On 20/05/12 21:01, boB Stepp wrote: Programming background; 1975-1978: FORTRAN, BASIC, some machine language/assembler. ... FORTRAN was used during pursuit of physics degree. That makes you the same vintage as me :-) Goals: Learn Python. While learning Python, learn all of the good C.Sc. s

Re: [Tutor] Teaching an 8-year-old programming.

2012-05-20 Thread Alan Gauld
On 20/05/12 21:07, boB Stepp wrote: This is, in a sense, a related question to the ones I just posted. While observing me studying programming, my son has become interested in learning how to program as well. While its possible to write good code in QBASIC it's much easier to learn a lot of ba

Re: [Tutor] While learning Py: To IDE or not to IDE?

2012-05-20 Thread Steven D'Aprano
boB Stepp wrote: Finally to the question: With the stated goals above, would it be better to invest time now at the front-end in learning a powerful IDE, Depends on the powerful IDE. Personally, I haven't found an IDE that I like since I last used THINK Pascal on Apple Mac back in the 1990s.

Re: [Tutor] While learning Py: To IDE or not to IDE?

2012-05-20 Thread Steven D'Aprano
Brian van den Broek wrote: There are three basic choice: emacs, vi or vim, and everything else. There is widespread, though not uniform, consensus that The One True Editor is one of emacs and vi. After that, the rest is flamewars. That is insanity! There is only One True EDitor, ed! It is righ

Re: [Tutor] Teaching an 8-year-old programming.

2012-05-20 Thread Jugurtha Hadjar
On 05/20/2012 09:07 PM, boB Stepp wrote: This is, in a sense, a related question to the ones I just posted. While observing me studying programming, my son has become interested in learning how to program as well. I have given him a very old Gateway PC to play around with. It was new when W95 cam

Re: [Tutor] Teaching an 8-year-old programming.

2012-05-20 Thread boB Stepp
On Sun, May 20, 2012 at 6:16 PM, Robert Sjoblom wrote: > "Snake wrangling for kids" is pretty good for teaching Python; it's > also free (which is a bonus): > http://www.briggs.net.nz/snake-wrangling-for-kids.html > Thanks everyone for all of the good suggestions! After spending most of the day

Re: [Tutor] While learning Py: To IDE or not to IDE?

2012-05-20 Thread Modulok
> Since you are using Solaris, I expect your options for IDEs are limited. > You're probably best off using Unix as your IDE: > > http://blog.sanctum.geek.nz/series/unix-as-ide/ > > which is my preferred solution. There's very little I can't do between my > editor and a terminal window with a few t