Pythons usage and some more questions

I just started learning python as a hobby and im at the beggining of a good tutorial.
Here is my question
what can i program with python?(games/players/drivers/3d programs/)?
whats pythons main advantages/differences compared to c/c++
im a noob so try to understand my question :slight_smile:

yes yes no yes

dynamic typing [you don’t have to put types on everything, but you also don’t get helpful compilier errors… you get the error when your program is running], intrepreted [not compiled], slower to run, faster to develop, forces proper indentation, awseome library [c++ has a horrible library… or at least it’s not well documented]

what can i program with python?

http://www.vex.net/parnassus/

%<

thanks for answering
i have one more question
how can i make it a stand alone program

as i can see u didnt get my point
i wanted to ask if i could make a program with python that opens without python,exe?
i hope u got my point,my english is bad and im a noob :slight_smile:

py2exe is the unanimous choice mostly but i read about some
program “cxstream” or something which when used with Inno setup
is better than py2exe

sorryfor bringing this thread up again but i didnt get it to work
i downloaded the py2exe and installed it.Cant do anything with it.
i read the documentation but it didnt help much…at all actually:)
could somebody make example executable of this simple script,with some comments

#formula.py
n=input(“enter the -n- value”)
a1=input(“enter the value of the first number of the sequense”)
d=input(“enter the -d-value”)
an=a1+(n-1)*d
S=((a1+an)/2)*n
print S

Here you go:
http://www.geocities.com/aligorith/Testing_PY2EXE.zip

EDIT: seems like I’ve made a few typos in the setup.py -> commas missing or extra
on line that says “version = …” add a comma at the end
on line that says “console = …” remove comma at the end

Aligorith

dynamic typing [you don’t have to put types on everything, but you also don’t get helpful compilier errors… you get the error when your program is running], intrepreted [not compiled], slower to run, faster to develop, forces proper indentation, awseome library [c++ has a horrible library… or at least it’s not well documented]

I think it’s more accurate to say it doesn’t have a good standard library. There are lots of good 3rd party libraries to substitute for this, but the problem is there are lots of them.

Python

Advantages: Easier to program in. Less time consuming and error prone. More fun :slight_smile:

Disadvantages: Slower. No good way to convert to executable (py2exe isn’t complete yet).

(py2exe isn’t complete yet)

Yeah I noticed that when I used it. It seems to compile all the python scripts that are relevant as byte-compiled python files, with the ones that you wanted as an exectuable tacked onto the executable, and the rest in a archive.

Besides, I got some fairly strange behaviours with paths -> trying to make it copy a dependancy to the dist/ folder. It refused to copy it as part of its files. I had to get it to manually do that -> shutil.copy()

Aligorith