Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74078
| Date | 2014-07-07 15:14 +1000 |
|---|---|
| From | Cameron Simpson <cs@zip.com.au> |
| Subject | Re: Saving |
| References | <53b9d5c1.037a320a.5521.ffffa6bb@mx.google.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11574.1404711751.18130.python-list@python.org> (permalink) |
On 06Jul2014 23:03, mrwhackadoo1@gmail.com <mrwhackadoo1@gmail.com> wrote: >I need to know how to save my code and save as programs because I write code >Please help and thank you for your time. Please tell a bit more about your work environment (editors, IDEs, computer OS, etc). The basic answer to your question is to edit the code in a file of its own, and to run it is a separate action, from that file. As an example, my coding environment contains an editor window and a shell (command line) window. (Plus doco in a web browser, etc, as needed.) So open a file with a useful name (start with "program1.py", but pick something more apt depending on the task) and open an editor on that file. When ready to test, save the file (probably a single key command in most editors, or the ever popular "File->Save" menu option). Then in another window, run it: python program1.py So you don't write code, test and _then_ save. You write code and save. Then test from the saved file. Cheers, Cameron Simpson <cs@zip.com.au> I'm Bubba of Borg. Y'all fixin' to be assimilated.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Saving Cameron Simpson <cs@zip.com.au> - 2014-07-07 15:14 +1000
csiph-web