• Python coding

    From Karen Park@21:1/5 to All on Sun Nov 27 16:47:29 2022
    Hello,

    I am trying to do a python code. Using Windows, I got as far as the step that asks me to “copy the logistics.py file and save it in the same folder that you are running python from” (as displayed by the command prompt).
    Can you help direct me where to go to copy and save this “logistics.py“ file?

    Thank you,

    Karen

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Cameron Simpson@21:1/5 to Karen Park on Mon Nov 28 11:02:29 2022
    On 27Nov2022 16:47, Karen Park <jkpark@mymts.net> wrote:
    I am trying to do a python code. Using Windows, I got as far as the
    step that asks me to “copy the logistics.py file and save it in the
    same folder that you are running python from” (as displayed by the
    command prompt).
    Can you help direct me where to go to copy and save this “logistics.py“ >file?

    It sounds like you're follow some tutorial? Can you provide the URL of
    the tutorial you're following?

    Cheers,
    Cameron Simpson <cs@cskk.id.au>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike Dewhirst@21:1/5 to All on Mon Nov 28 11:36:51 2022
    Q3JlYXRlIGEgZm9sZGVyIGFueXdoZXJlIGNvbnZlbmllbnQgYW5kIGNvcHkgaXQgaW4gdGhlcmUu VGhlbiAtIGlmIHB5dGhvbiBoYXMgYmVlbiBkb3dubG9hZGVkIGZyb20gdGhlIFB5dGhvbiB3ZWJz aXRlIGFuZCBpbnN0YWxsZWQgIm5vcm1hbGx5IiB5b3UgY2FuIG9wZW4gYSBjb21tYW5kIHByb21w dCBpbiB0aGF0IGZvbGRlciBhbmQgdHlwZcKgQzpcPGFueXdoZXJlIGNvbnZlbmllbnQ+XCQ+cHl0 aG9uIGxvZ2lzdGljcy5weSJub3JtYWxseSIgbWVhbnMgUHl0aG9uIGlzIGluIHlvdXIgcGF0aCBl bnZpcm9ubWVudCB2YXJpYWJsZS4tLShVbnNpZ25lZCBtYWlsIGZyb20gbXkgcGhvbmUpCi0tLS0t LS0tIE9yaWdpbmFsIG1lc3NhZ2UgLS0tLS0tLS1Gcm9tOiBLYXJlbiBQYXJrIDxqa3BhcmtAbXlt dHMubmV0PiBEYXRlOiAyOC8xMS8yMiAgMTA6MDcgIChHTVQrMTA6MDApIFRvOiBweXRob24tbGlz dEBweXRob24ub3JnIFN1YmplY3Q6IFB5dGhvbiBjb2RpbmcgSGVsbG8sSSBhbSB0cnlpbmcgdG8g ZG8gYSBweXRob24gY29kZS4gVXNpbmcgV2luZG93cywgSSBnb3QgYXMgZmFyIGFzIHRoZSBzdGVw IHRoYXQgYXNrcyBtZSB0byDigJxjb3B5IHRoZSBsb2dpc3RpY3MucHkgZmlsZSBhbmQgc2F2ZSBp dCBpbiB0aGUgc2FtZSBmb2xkZXIgdGhhdCB5b3UgYXJlIHJ1bm5pbmcgcHl0aG9uIGZyb23igJ0g KGFzIGRpc3BsYXllZCBieSB0aGUgY29tbWFuZCBwcm9tcHQpLiBDYW4geW91IGhlbHAgZGlyZWN0 IG1lIHdoZXJlIHRvIGdvIHRvIGNvcHkgYW5kIHNhdmUgdGhpcyDigJxsb2dpc3RpY3MucHnigJwg ZmlsZT9UaGFuayB5b3UsS2FyZW4gLS0gaHR0cHM6Ly9tYWlsLnB5dGhvbi5vcmcvbWFpbG1hbi9s aXN0aW5mby9weXRob24tbGlzdA==

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dennis Lee Bieber@21:1/5 to All on Sun Nov 27 22:09:44 2022
    On Sun, 27 Nov 2022 16:47:29 -0600, Karen Park <jkpark@mymts.net> declaimed
    the following:

    I am trying to do a python code. Using Windows, I got as far as the step that asks me to “copy the logistics.py file and save it in the same folder that you are running python from” (as displayed by the command prompt).
    Can you help direct me where to go to copy and save this “logistics.py“ file?

    Well, where do the instructions tell you to obtain "logistics.py"? Or maybe that is the file you are supposed to create using some editor?

    Unless you've changed directories, opening a command shell should reveal something like:

    Microsoft Windows [Version 10.0.19044.2251]
    (c) Microsoft Corporation. All rights reserved.

    C:\Users\Wulfraed>

    ... C:\Users\Wulfraed would be the directory in which to save the file
    (for my machine)... But if I run a few directory changes...

    Microsoft Windows [Version 10.0.19044.2251]
    (c) Microsoft Corporation. All rights reserved.

    C:\Users\Wulfraed>cd "Documents\_Hg-Repositories\Python Progs"

    C:\Users\Wulfraed\Documents\_Hg-Repositories\Python Progs>

    ... means the directory to save in would be C:\Users\Wulfraed\Documents\_Hg-Repositories\Python Progs

    The idea is to save the .py file in the /current working directory/. That way you only need to type the name of the file, without the long
    directory path, when invoking the program (which assumes 'python"
    [python.exe] is on your system path).


    --
    Wulfraed Dennis Lee Bieber AF6VN
    wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)