Aug-04-2021, 02:56 PM
(This post was last modified: Aug-04-2021, 07:36 PM by Yoriz.
Edit Reason: Added code tags
)
OK buran
Opened cmd prompt window, have a G: partition so type G: in cmd prompt. copied the .py file to G: root and it worked. Does not like spaces in file name.
Also found the code to clear the screen in cmd prompt.
Question , are there two type of exe's for python. One that would run in the dos type environment and one that would run in windows 10 desktop using an icon. May be a while before I attempt doing an exe.
below is a simple test code that I use in starting to learn python
Opened cmd prompt window, have a G: partition so type G: in cmd prompt. copied the .py file to G: root and it worked. Does not like spaces in file name.
Also found the code to clear the screen in cmd prompt.
Question , are there two type of exe's for python. One that would run in the dos type environment and one that would run in windows 10 desktop using an icon. May be a while before I attempt doing an exe.
below is a simple test code that I use in starting to learn python
import os clear = lambda: os.system('cls') clear() i = 1 while i < 6: print(i) i += 1 aTuple = (10, 20, 30, 40) a, b, c, d = aTuple print(a) print(b) print(c) print(d)