i've been trying to make simple programs and downloaded python 3.01. unfortunately i have no programming experience, and am a bit stuck despite searching around the tutorial, library, etc. (please forgive if this question is already answered somewhere)
my first attempt at a program is
>>>print (hello world)
hello world
when i just type it in the application, it works great. i've also figured out simple things like
>>>n=2
>>>n+2
4
but say for hello world program, how can i do it so that it executes automatically? so it automatically shows 'hello world'?
i've tried like saving it as "program.exe" in shell, but it doesn't work, 'illegal instruction' apparently.
when i just save it as "program", windows asks me what to open it with and i say python.exe, and the black screen just appears for half a second and disappears...
is it even possible to make a program so when you open it, it automatically does something?