oh i forgot this: The book i bought and which im reading from is Learning Python - Mark Lutz - O'reilly
---------------------------------------- > From: talmi...@live.com > To: alan.ga...@btinternet.com; tutor@python.org > Date: Sun, 12 Feb 2012 11:57:57 -0500 > Subject: Re: [Tutor] Running Files with Command Lines > > > 1. i tried this morning and it worked in the CMD check it out: > > copied and pasted from the CMD > C:\Users\myusername>cd documents > C:\Users\myusername\Documents>cd varios2 > C:\Users\myusername\Documents\varios2>cd pythonjourney > C:\Users\myusername\Documents\varios2\pythonjourney>script.py <------- i > did not write the name the file properly, my mistake!'script.py' is not > recognized as an internal or external command,operable program or batch file. > C:\Users\myusername\Documents\varios2\pythonjourney>script1.py <----- now > i did it > properlywin321267650600228229401496703205376spam!spam!spam!spam!spam!spam!spam!spam! > --- i must say that previously i added C:\python32 to the environment path ;) > yay! > now im trying it from the python command line, with no success yet :( > > > ---------------------------------------- > > To: tutor@python.org > > From: alan.ga...@btinternet.com > > Date: Sun, 12 Feb 2012 16:16:47 +0000 > > Subject: Re: [Tutor] Running Files with Command Lines > > > > On 12/02/12 15:50, Yony Torres wrote: > > > > > I'm trying to learn Python from a well known book, > > > > > > Do0n;t make us guess, tell us the name of the book, well known or not. > > There is just a chance somebody else may have read it too! > > > > > while i was working with the windows CMD > > > c:\Python32>python > > > > This is where you are going wrong. > > You should not run python on its own, that gets you into the Python > > interpreter with its own >>> prompt. For this exercise you want to run > > your script directly from the OS prompt (on Windows usually ending in a > > single >) > > > > > Can somebody please help me? > > > > See the other posted replies about typing the command. > > It will likely look like this(but all on a single line) > > > > C:\Python32> python > > c:\Users\myusername\Documents\varios2\pythonjourney\script1.py > > > > Don't put spaces in your paths, that will confuse Windows... > > > > -- > > 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 > > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor