(Feb-13-2018, 08:16 AM)buran Wrote: https://python-forum.io/Thread-Basic-How...ython-code is pretty clear how to run itSorry buran I don't find the page you mention at all 'clear' for running python.
c:\Users\bob>python test.py
I will stick to the part
Command line (python script)
I have saved a file, my file is called ‘test’ because I used the page you mention to help me try to get it to work.
I have located the directory of the file and entered it into the command line
C:users\bob\test.py, as I said in my first post all I get is
SyntaxError; unexpected character after line continuation character.
A little further down the same page it says
Does your program when executed just flicker and then go away?.....in python 3. put input() in the end of the file to prevent this.
I tried this and it doesn’t work, my program still flickers and goes away if I just double click on the file.
It also says It depends on what OS you are on as to what the commands are. Some basics are:
Cd something
If I put cd user to change the directory to user it ignores this as well.
Grigouillis
Most of Your link is concerned with installing and altering various forms of python.
At one point (3.4.1 getting started) it does say
To check that the launcher is available, execute the following command in Command Prompt: py
if I do that I get
Traceback (most recent call last):
File "<stdin>". Line 1. in <module>
NameError: name 'py' is not defined
I assume I am not even in the launcher but nowhere, I can find, does it say how to check or how to get into the launcher.
At the top of the box it does say
python 3.6.4 (v3.6.4:d48eceb. Dec 19 2017, 06:04:45) [MSC v.1990 32 bit (intel)]
So I am assuming that I am at least somewhere in the python world.
I am not using wordpad. I said
Quote:I have deduced that I must build a file using something like wordpadin fact I am using notepad.