Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Python coding

42 views
Skip to first unread message

Karen Park

unread,
Nov 27, 2022, 6:05:42 PM11/27/22
to
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



Cameron Simpson

unread,
Nov 27, 2022, 7:08:48 PM11/27/22
to
It sounds like you're follow some tutorial? Can you provide the URL of
the tutorial you're following?

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

Mike Dewhirst

unread,
Nov 27, 2022, 7:43:30 PM11/27/22
to
Create a folder anywhere convenient and copy it in there.Then - if python has been downloaded from the Python website and installed "normally" you can open a command prompt in that folder and type C:\<anywhere convenient>\$>python logistics.py"normally" means Python is in your path environment variable.--(Unsigned mail from my phone)
-------- Original message --------From: Karen Park <jkp...@mymts.net> Date: 28/11/22 10:07 (GMT+10:00) To: pytho...@python.org Subject: Python coding 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 -- https://mail.python.org/mailman/listinfo/python-list

Dennis Lee Bieber

unread,
Nov 27, 2022, 10:10:11 PM11/27/22
to
On Sun, 27 Nov 2022 16:47:29 -0600, Karen Park <jkp...@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
wlf...@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/
0 new messages