Re: [Tutor] Running .py Files

2012-06-05 Thread Mark Lawrence
On 06/06/2012 04:14, Benjamin Cox wrote: Hello, So, I'm very new to Python and programming in general, and I've been having trouble figuring out how to run programs by clicking on their .py file name. For some reason, my computer's default setting is to open them in wordpad. I have Windows 7 3

[Tutor] Running .py Files

2012-06-05 Thread Benjamin Cox
Hello, So, I'm very new to Python and programming in general, and I've been having trouble figuring out how to run programs by clicking on their .py file name. For some reason, my computer's default setting is to open them in wordpad. I have Windows 7 32-bit OS and Python 3.2.3. Any help would

Re: [Tutor] Running .py files in shell

2011-09-22 Thread Steven D'Aprano
Robert Layne wrote: Well everybody, sorry for the incomplete sentences and overall poor English but I wanted to make this simple to read and understand for someone who is completely inexperienced in any sort of programming, Generally speaking, incomplete sentences and overall poor English mak

Re: [Tutor] Running .py files in shell

2011-09-21 Thread Robert Layne
Well everybody, sorry for the incomplete sentences and overall poor English but I wanted to make this simple to read and understand for someone who is completely inexperienced in any sort of programming, as I am (very first day messing with this stuff, e.g., terminal). This is the result of hou

Re: [Tutor] Running .py files in shell

2010-07-28 Thread Alan Gauld
"Kevin Rapley" wrote The simplest way is to put a "shebang" line at the top of your script and then make them executable: $ cat> myscript.py What is the significance of this and how do I use it? >>> cat > tryme1.py Notice the difference in the prompt. A dollar sign is the generic way o

Re: [Tutor] Running .py files in shell

2010-07-28 Thread David Hutto
On Wed, Jul 28, 2010 at 2:39 AM, Kevin Rapley wrote: > >>> I am running Mac OSX v10.6.4 Snow Leopard >>> I am running Python 2.6.1 >> >> In general get the MacPython distributions of Python etc, they usually >> install easier (ie from the GUI) than the "Unix" based versions. > > Okay, thanks. I wi

Re: [Tutor] Running .py files in shell

2010-07-28 Thread Kevin Rapley
I am running Mac OSX v10.6.4 Snow Leopard I am running Python 2.6.1 In general get the MacPython distributions of Python etc, they usually install easier (ie from the GUI) than the "Unix" based versions. Okay, thanks. I will look into that. 1. How do I execute .py files in the command line sh

Re: [Tutor] Running .py files in shell

2010-07-27 Thread Alan Gauld
"Kevin Rapley" wrote I am running Mac OSX v10.6.4 Snow Leopard I am running Python 2.6.1 In general get the MacPython distributions of Python etc, they usually install easier (ie from the GUI) than the "Unix" based versions. 1. How do I execute .py files in the command line shell? I have my

[Tutor] Running .py files in shell

2010-07-27 Thread Kevin Rapley
Hello all, I am new to programming and have opted to learn Python as I hear it is a good first language. I am currently going through the exercises in 'How to Think Like a Computer Scientist: Learning with Python 2nd Edition'. I am running Mac OSX v10.6.4 Snow Leopard I am running Python 2.6.