Re: [Tutor] I cannot "run" any Python programs

2012-02-22 Thread Alan Gauld

On 22/02/12 23:29, Tamar Osher wrote:

Thanks! I hope to find a Windows7 expert to help me.


You don't need a Windows 7 expert, just to set things
up properly.

First open up Notepad++ again and enter everything between
the  then save to a file called myHello.py and exit Notepad++.


print ("Hello world, Python calling!")
input("Hit return to exit")


Find myhello.py in Windows explorer and double click it.
(It's probably a good idea to create a special folder to
store your python programs. It'll be easier to find them
in the future!)

If python is installed correctly a black window should
open displaying:

Hello world, Python calling
Hit return to exit

If you hit return the window should close.

Now open the  same file in IDLE (File->Open)

You should have a new edit window.
In IDLE  choose the Run->Run Module menu item.

Your program should now run inside IDLE and display its output in the 
Python Shell window of IDLE. When you hit return this time IDLE stays 
open but returnms to the Python shell prompt >>>


If that all works, great, you are set up. If it doesn't come back and 
tell us *exactly* what you did and what was displayed. Copy 'n paste any 
error messages if possible.


HTH
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] I cannot "run" any Python programs

2012-02-22 Thread Mark Lawrence

On 22/02/2012 23:29, Tamar Osher wrote:


Thanks!  I hope to find a Windows7 expert to help me.

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Try reading this http://docs.python.org/using/windows.html

--
Cheers.

Mark Lawrence.

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] I cannot "run" any Python programs

2012-02-22 Thread Tamar Osher

Thanks!  I hope to find a Windows7 expert to help me.
  ___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] I cannot "run" any Python programs

2012-02-22 Thread Joel Goldstick
On Wed, Feb 22, 2012 at 6:11 PM, Tamar Osher  wrote:
> Dear Joel: Hi!  Thanks for helping.  I typed cmd, and got the same black
> box, this time labeled C:\windows\system32\cmd.exe instead of "Command
> Prompt".  When I type python myprogram.py, this is what appears on the
> screen:
> 'python' is not recognized as an internal or external command, operable
> program, or batch file.
>
> Can you help me?  I hope so!
>
>
> From Your Friend: Tamar Osher
> Email: emeraldoff...@hotmail.com
>
>
>
>
>
>
>
>> Date: Wed, 22 Feb 2012 18:02:23 -0500
>
>> Subject: Re: [Tutor] I cannot "run" any Python programs
>> From: joel.goldst...@gmail.com
>> To: emeraldoff...@hotmail.com
>> CC: tutor@python.org
>>
>> On Wed, Feb 22, 2012 at 5:49 PM, Tamar Osher 
>> wrote:
>> > Dear Joel: HI!  Thanks for helping.  When I use the Python shell, and
>> > navigate to the saved Python program, what happens is:
>> > A second Python shell pops up, displaying the coding of the program
>> > (which
>> > is a tiny 'hello world' program).  This is what is displayed in the
>> > second
>> > Python shell:
>> >>>> print("Hello, World!")
>> >
>> > In the first Python shell, when I type in what you requested, this is
>> > what
>> > happens:
>> >>>> python myprogram.py
>> > SyntaxError: invalid syntax
>> >>>> python hello.py
>> > SyntaxError: invalid syntax
>> >>>>
>> >
>> > I am not able to use the Python shell to find the saved Python program.
>> > I
>> > am able to use Notepad++ to locate the saved Python program, but I
>> > cannot
>> > run the program.  I cannot do anything with the command prompt (black
>> > box).
>> >
>> > I request help to figure out how to run Python programs. Thanks for
>> > helping
>> > me!
>> >
>>
>> from the >>>> stuff at the start of each line, you are in a python
>> shell. Don't do that. Just get into a command shell.
>> Since I believe you are in windows, press the start button, then run
>> command and the command you run should be cmd
>>
>> This will bring you to a window which looks a lot like DOS used to
>> look. You probably are too young for that. Anyway, at that point,
>> try typing python myprogram.py
>>
>>
>> --
>> Joel Goldstick

Don't top post.  Put your comments at the bottom of the message or
intersperse where appropriate.  I'm not a windows guy anymore.
Someone who is can help you figure out how to find out where python is
and put it on your path.

In the mean time, google "microsoft python setting up path" and you
may be on your way!

-- 
Joel Goldstick
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] I cannot "run" any Python programs

2012-02-22 Thread Tamar Osher

Dear Joel: Hi!  Thanks for helping.  I typed cmd, and got the same black box, 
this time labeled C:\windows\system32\cmd.exe instead of "Command Prompt".  
When I type python myprogram.py, this is what appears on the screen:'python' is 
not recognized as an internal or external command, operable program, or batch 
file.

Can you help me?  I hope so!
 
>From Your Friend: Tamar Osher
Email: emeraldoff...@hotmail.com







> Date: Wed, 22 Feb 2012 18:02:23 -0500
> Subject: Re: [Tutor] I cannot "run" any Python programs
> From: joel.goldst...@gmail.com
> To: emeraldoff...@hotmail.com
> CC: tutor@python.org
> 
> On Wed, Feb 22, 2012 at 5:49 PM, Tamar Osher  
> wrote:
> > Dear Joel: HI!  Thanks for helping.  When I use the Python shell, and
> > navigate to the saved Python program, what happens is:
> > A second Python shell pops up, displaying the coding of the program (which
> > is a tiny 'hello world' program).  This is what is displayed in the second
> > Python shell:
> >>>> print("Hello, World!")
> >
> > In the first Python shell, when I type in what you requested, this is what
> > happens:
> >>>> python myprogram.py
> > SyntaxError: invalid syntax
> >>>> python hello.py
> > SyntaxError: invalid syntax
> >>>>
> >
> > I am not able to use the Python shell to find the saved Python program.  I
> > am able to use Notepad++ to locate the saved Python program, but I cannot
> > run the program.  I cannot do anything with the command prompt (black box).
> >
> > I request help to figure out how to run Python programs. Thanks for helping
> > me!
> >
> 
> from the >>>> stuff at the start of each line, you are in a python
> shell.  Don't do that.  Just get into a command shell.
> Since I believe you are in windows, press the start button, then run
> command and the command you run should be cmd
> 
> This will bring you to a window which looks a lot like DOS used to
> look.  You probably are too young for that.  Anyway, at that point,
> try typing python myprogram.py
> 
> 
> -- 
> Joel Goldstick
  ___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] I cannot "run" any Python programs

2012-02-22 Thread Joel Goldstick
On Wed, Feb 22, 2012 at 5:49 PM, Tamar Osher  wrote:
> Dear Joel: HI!  Thanks for helping.  When I use the Python shell, and
> navigate to the saved Python program, what happens is:
> A second Python shell pops up, displaying the coding of the program (which
> is a tiny 'hello world' program).  This is what is displayed in the second
> Python shell:
 print("Hello, World!")
>
> In the first Python shell, when I type in what you requested, this is what
> happens:
 python myprogram.py
> SyntaxError: invalid syntax
 python hello.py
> SyntaxError: invalid syntax

>
> I am not able to use the Python shell to find the saved Python program.  I
> am able to use Notepad++ to locate the saved Python program, but I cannot
> run the program.  I cannot do anything with the command prompt (black box).
>
> I request help to figure out how to run Python programs. Thanks for helping
> me!
>

from the  stuff at the start of each line, you are in a python
shell.  Don't do that.  Just get into a command shell.
Since I believe you are in windows, press the start button, then run
command and the command you run should be cmd

This will bring you to a window which looks a lot like DOS used to
look.  You probably are too young for that.  Anyway, at that point,
try typing python myprogram.py


-- 
Joel Goldstick
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] I cannot "run" any Python programs

2012-02-22 Thread Tamar Osher

Dear Joel: HI!  Thanks for helping.  When I use the Python shell, and navigate 
to the saved Python program, what happens is:
A second Python shell pops up, displaying the coding of the program (which is a 
tiny 'hello world' program).  This is what is displayed in the second Python 
shell:
>>> print("Hello, World!")

In the first Python shell, when I type in what you requested, this is what 
happens:
>>> python myprogram.py
SyntaxError: invalid syntax
>>> python hello.py
SyntaxError: invalid syntax
>>> 

I am not able to use the Python shell to find the saved Python program.  I am 
able to use Notepad++ to locate the saved Python program, but I cannot run the 
program.  I cannot do anything with the command prompt (black box).

I request help to figure out how to run Python programs. Thanks for helping me!
 
>From Your Friend: Tamar Osher
Email: emeraldoff...@hotmail.com








> Date: Wed, 22 Feb 2012 17:33:22 -0500
> Subject: Re: [Tutor] I cannot "run" any Python programs
> From: joel.goldst...@gmail.com
> To: emeraldoff...@hotmail.com
> CC: tutor@python.org
> 
> On Wed, Feb 22, 2012 at 5:23 PM, Tamar Osher  
> wrote:
> > Hi.  I need help.
> >
> > I have installed Python 3.2.2 and have been using IDLE (the "Python shell")
> > to type and save a Python program, such as 'Hello World'.
> >
> > However, the command prompt (the black box) will not allow me to type a
> > Python program or to "run" a Python program.  So I tried to run a Python
> > program using Notepad++, and while I am able to type it, I am not able to
> > save it.
> >
> > I am not able to "run" any Python programs.  I have read so much about
> > Python, and have researched the situation in detail, and have experimented
> > with various "environmental variables" and user/system paths.  I need help
> > to correct the situation..
> >
> > Can someone please help me?  Thanks for helping.  I look forward to hearing
> > from you.
> >
> > From Your Friend: Tamar Osher
> > Skype: tamarosher
> > Email: emeraldoff...@hotmail.com
> > Message Phone: 011- 1- 513-252-2936
> > www.HowToBeGifted.com - marketing communication, web design, and much more
> >
> 
> run cmd to get to the shell.
> in the shell, navigate to the directory where you have saved your file.
> 
> type:
> 
> python myprogram.py
> 
> Tell us what happens.
> 
> >
> >
> >
> >
> >
> > ___
> > Tutor maillist  -  Tutor@python.org
> > To unsubscribe or change subscription options:
> > http://mail.python.org/mailman/listinfo/tutor
> >
> 
> 
> 
> -- 
> Joel Goldstick
  ___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] I cannot "run" any Python programs

2012-02-22 Thread Joel Goldstick
On Wed, Feb 22, 2012 at 5:23 PM, Tamar Osher  wrote:
> Hi.  I need help.
>
> I have installed Python 3.2.2 and have been using IDLE (the "Python shell")
> to type and save a Python program, such as 'Hello World'.
>
> However, the command prompt (the black box) will not allow me to type a
> Python program or to "run" a Python program.  So I tried to run a Python
> program using Notepad++, and while I am able to type it, I am not able to
> save it.
>
> I am not able to "run" any Python programs.  I have read so much about
> Python, and have researched the situation in detail, and have experimented
> with various "environmental variables" and user/system paths.  I need help
> to correct the situation..
>
> Can someone please help me?  Thanks for helping.  I look forward to hearing
> from you.
>
> From Your Friend: Tamar Osher
> Skype: tamarosher
> Email: emeraldoff...@hotmail.com
> Message Phone: 011- 1- 513-252-2936
> www.HowToBeGifted.com - marketing communication, web design, and much more
>

run cmd to get to the shell.
in the shell, navigate to the directory where you have saved your file.

type:

python myprogram.py

Tell us what happens.

>
>
>
>
>
> ___
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>



-- 
Joel Goldstick
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] I cannot "run" any Python programs

2012-02-22 Thread Tamar Osher

Hi.  I need help.

I have installed Python 3.2.2 and have been using IDLE (the "Python shell") to 
type and save a Python program, such as 'Hello World'.

However, the command prompt (the black box) will not allow me to type a Python 
program or to "run" a Python program.  So I tried to run a Python program using 
Notepad++, and while I am able to type it, I am not able to save it.

I am not able to "run" any Python programs.  I have read so much about Python, 
and have researched the situation in detail, and have experimented with various 
"environmental variables" and user/system paths.  I need help to correct the 
situation..
Can someone please help me?  Thanks for helping.  I look forward to hearing 
from you.
 
>From Your Friend: Tamar Osher
Skype: tamarosher
Email: emeraldoff...@hotmail.com
Message Phone: 011- 1- 513-252-2936
www.HowToBeGifted.com - marketing communication, web design, and much more





  ___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor