Sir, Under the handling files topic, trying to compile the addressbook example you gave, am I to put them all in one file and save as address book? or each is a different module is saved in different files?
I have attached for your correction what I did, please let me know if it is wrong and then point out my mistakes. I'll have a look at that topic again and make sure I fix whatever correction you point out for me. Thank You. On 5/25/10, ALAN GAULD <alan.ga...@btinternet.com> wrote: > OK, That means Python has not set up your PATH environment variable. > This seems to be a common problem in recent releases, I think it is a > bug but the Pyton developers disagree! :-) > > You need to follow the instructions in the box in the Getting Started topic. > > The test of whether it works is to go to the folder with your scripts in > and just type python at the prompt. The usual >>> prompt should appear. > > As to your attachment here are some explanations: > >> C:\Documents and Settings\Administrator>cd\C:\Python31\Project >> The filename, directory name, or volume label syntax is incorrect. > > You put the \ in front of the drive again. > Also please type a space between the cd and the path, it makes > it much easier to read! > ie: > cd C:\Python31\Project > >> C:\Documents and Settings\Administrator>cd\Python31\Project > > This worked because the folder is on the same drive as the prompt, ie C. > >> C:\Python31\Project>var.py >> Access is denied. > > This is odd. Can you try two things: > > 1) type dir var.* (dir for *dir*ectory listing) > 2) assuming var.py is listed type attrib var.py > > Let me know what it says. > >> C:\Python31\Project>python var.py >> 'python' is not recognized as an internal or external command, >> operable program or batch file. > > This should have worked if the PATH environment was set up properly... > >> C:\Python31\Project>testingformat >> Access is denied. > > You need to specify the .py because Windows uses that to know > what program to use to execute the file - if its been set up properly! > >> C:\Python31\Project>python testingformat >> 'python' is not recognized as an internal or external command, >> operable program or batch file. > > Again, even if PATH is fixed you would still neeed the .py extension > >> C:\Python31\Project>cd\python31 > >> C:\Python31>python var.py >> this is a string.this string continues here. > > This worked so var.py is in your python31 folder.... Is there also > a copy in the Projects folder? > > You should move your Projects folder somewhere else though. > Because if you uninstall python 3.1 - for example when > version 3.2 comes out - the uninstaller will delete python31 > and everything under it - including your code! > > Alan Gauld > Author of the Learn To Program website > http://www.alan-g.me.uk/ > > > > > > ________________________________ > From: Dipo Elegbede <delegb...@dudupay.com> > To: ALAN GAULD <alan.ga...@btinternet.com> > Sent: Tuesday, 25 May, 2010 9:06:39 > Subject: Re: PYTHON 3.1 > > got back to what you adviced Sir. > I did the cd to the file where the codes were saved and typed > <python><the code> but it replied python wasnot recognised. > I have attached the screen of the command prompt for you to see what i mean. > Thanks for your time. > > On 5/24/10, Dipo Elegbede <delegb...@dudupay.com> wrote: >> I'll see to that again and do exactly as you have directed. >> Thanks and best regards, >> >> >> On 5/24/10, ALAN GAULD <alan.ga...@btinternet.com> wrote: >>> OK, See my other email. >>> You should keep your code files in a completely separate >>> folder from Python so that if you ever upgrade Python >>> you don't lose all your code! >>> >>> The trick is to CD into the folder you store your code >>> not the folder where Python lives. >>> >>> Alan Gauld >>> Author of the Learn To Program website >>> http://www.alan-g.me.uk/ >>> >>> >>> >>> >>> >>> ________________________________ >>> From: Dipo Elegbede <delegb...@dudupay.com> >>> To: ALAN GAULD <alan.ga...@btinternet.com> >>> Sent: Monday, 24 May, 2010 14:48:32 >>> Subject: Re: PYTHON 3.1 >>> >>> Sir, I got it now. >>> I moved all my codes to the python directory. I initially had another >>> folder in the Python31 folder but now moved all to the Python31 folder >>> and it's running well on the command prompt. >>> Thanks. >>> I'll go ahead to read stdin and stdout again and see what I can make of >>> it. >>> Regards, >>> >>> On 5/24/10, Dipo Elegbede <delegb...@dudupay.com> wrote: >>>> i have tried all that you advised, i still didn't run from the command >>>> prompt. >>>> >>>> Pls find attached the screen shot for various attempts I made. >>>> >>>> thanks. >>>> >>>> On 5/21/10, ALAN GAULD <alan.ga...@btinternet.com> wrote: >>>>> I suspect the likely cause is that you need to change directory to the >>>>> directory(folder) where your code lives. Lets say you keep your code >>>>> in C:\Projects\Python >>>>> >>>>> start the DOS box >>>>> Type (the bits in bold): >>>>> >>>>> C\:..\> cd C:\Projects\Python >>>>> >>>>> Now type >>>>> >>>>> C:\Projects\Python>python myprogram.py >>>>> >>>>> using whatever your python file is called... >>>>> >>>>> Now, provided everything is set up properly it should run. >>>>> In fact you might even get away wioth jusdt typing: >>>>> >>>>> C:\Projects\Python\> myprogram.py >>>>> >>>>> Because in theory Windows should know to run python >>>>> for a .py file.... But it often "forgets" :-( >>>>> >>>>> >>>>> Alan Gauld >>>>> Author of the Learn To Program website >>>>> http://www.alan-g.me.uk/ >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> ________________________________ >>>>> From: Dipo Elegbede <delegb...@dudupay.com> >>>>> To: ALAN GAULD <alan.ga...@btinternet.com> >>>>> Sent: Friday, 21 May, 2010 19:35:57 >>>>> Subject: Re: PYTHON 3.1 >>>>> >>>>> I still can not successfully run Python from the windows command >>>>> prompt after doing all you've directed in the tutorials. (Pls note, >>>>> I'm not ruling out the probability that I didn't get the instructions >>>>> right. As a matter of fact, this is possibly why I still have the >>>>> problem.) >>>>> Sir, I'm hoping you could take me through that again. >>>>> Like when I type >>>>> C:document and setting>python xx.py >>>>> It tells me the file does not exit. >>>>> It atimes starts python when I type python at the prompt to give: >>>>> C:....Python> >>>>> When i type the name of the file at the python prompt, I still get an >>>>> error.e.g >>>>> Python>read.py >>>>> It comes with error. >>>>> It's challenging because some examples in your tutorial require I run >>>>> from the prompt and so I'm getting stucked midway. >>>>> Please Help. >>>>> Regards, >>>>> >>>>> On 5/21/10, Dipo Elegbede <delegb...@dudupay.com> wrote: >>>>>> Hi Alan Sir, >>>>>> >>>>>> I have been reading through your site and the tutorials, it's just >>>>>> something else, I started feeling like a real programmer when i worked >>>>>> through the easygui thingy, it was really a mind-blower. >>>>>> I hope you'll pardon my pace of learning. I still didn't get some >>>>>> aspect under 'Conversing with the user' >>>>>> i really read through and I am hoping to reread but I would like you >>>>>> shed more light on the stdin and stdout areas. >>>>>> They are really confusing. >>>>>> Please help. >>>>>> Regards, >>>>>> >>>>>> On 5/20/10, Dipo Elegbede <delegb...@dudupay.com> wrote: >>>>>>> Ok, Master. I should would have a lot to learn from you. >>>>>>> >>>>>>> I hope you'd oblige me that rare priviledge. >>>>>>> >>>>>>> Regards, Master! >>>>>>> >>>>>>> On 5/20/10, ALAN GAULD <alan.ga...@btinternet.com> wrote: >>>>>>>> >>>>>>>> >>>>>>>>> I may consider pascal after excelling in Python. >>>>>>>> >>>>>>>> I wouldn't bother, the only place it is used nowadays is in the >>>>>>>> Borland Delphi programming tool for Windows(*). Delphi is very >>>>>>>> good if you already know Pascal but otherwise is just another >>>>>>>> language to learn! :-) >>>>>>>> >>>>>>>> (*)Although there is a freeware version of Pascal - fpc - that is >>>>>>>> compatible with Delphi if you really want to try it out. But >>>>>>>> definitely wait till after Python. (Actually Python is a good >>>>>>>> intro to Delphi, they have many features in common) >>>>>>>> >>>>>>>> Alan G. >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Elegbede Muhammed Oladipupo >>>>>>> OCA >>>>>>> +2348077682428 >>>>>>> +2347042171716 >>>>>>> www.dudupay.com >>>>>>> Mobile Banking Solutions | Transaction Processing | Enterprise >>>>>>> Application Development >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Elegbede Muhammed Oladipupo >>>>>> OCA >>>>>> +2348077682428 >>>>>> +2347042171716 >>>>>> www.dudupay.com >>>>>> Mobile Banking Solutions | Transaction Processing | Enterprise >>>>>> Application Development >>>>>> >>>>> >>>>> -- >>>>> Sent from my mobile device >>>>> >>>>> Elegbede Muhammed Oladipupo >>>>> OCA >>>>> +2348077682428 >>>>> +2347042171716 >>>>> www.dudupay.com >>>>> Mobile Banking Solutions | Transaction Processing | Enterprise >>>>> Application Development >>>>> >>>> >>>> >>>> -- >>>> Elegbede Muhammed Oladipupo >>>> OCA >>>> +2348077682428 >>>> +2347042171716 >>>> www.dudupay.com >>>> Mobile Banking Solutions | Transaction Processing | Enterprise >>>> Application Development >>>> >>> >>> >>> -- >>> Elegbede Muhammed Oladipupo >>> OCA >>> +2348077682428 >>> +2347042171716 >>> www.dudupay.com >>> Mobile Banking Solutions | Transaction Processing | Enterprise >>> Application Development >>> >> >> -- >> Sent from my mobile device >> >> Elegbede Muhammed Oladipupo >> OCA >> +2348077682428 >> +2347042171716 >> www.dudupay.com >> Mobile Banking Solutions | Transaction Processing | Enterprise >> Application Development >> > > > -- > Elegbede Muhammed Oladipupo > OCA > +2348077682428 > +2347042171716 > www.dudupay.com > Mobile Banking Solutions | Transaction Processing | Enterprise > Application Development > -- Elegbede Muhammed Oladipupo OCA +2348077682428 +2347042171716 www.dudupay.com Mobile Banking Solutions | Transaction Processing | Enterprise Application Development
addbk.py
Description: Binary data
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor