Python Forum
program exited with code: -1073740791 - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: program exited with code: -1073740791 (/thread-23235.html)



program exited with code: -1073740791 - RegiMental - Dec-17-2019

Hi All. This is my first post and today represented my first foray into the world of python (and programming again after doing some VB around 18 years ago). And I hit a snag straight away which is hugely frustrating. You will all have to forgive me if this question has been posted before; I have had a quick scan of the forums and could not see it. Anyway I will continue.

Firstly the details:
I have installed version 3.8.0
I am using Geany 1.36
My OS is Windows 10 Home 64 bit (build 18362)

So I tried the first program everyone does: print(“Hello world”), hit execute and I get the following returned:

(program exited with code: -1073740791)
Press any key to continue...

I have spent the last 30 minutes googling this and I can find nothing that refers to this exit code. I have a laptop with windows 8 and get the same on that. I thought it may be an OS/version issue, but I get the same on the Windows 10 machine.

Please could someone help? I did not expect to get so stuck so early.

Thanks in advance.


RE: program exited with code: -1073740791 - Marbelous - Dec-17-2019

How did you "Execute" your program? I don't know Geany but if you want to use it or any other editor (besides maybe IDLE that comes with python) you have to learn more about the editor than you do about python. Dump Geany for now. You should really learn how to use the command line to run your programs and save the IDEs for later but since you probably want to see your first programs run just use IDLE.
Open it from Win10 Start Menu. You will get an interactive session and you will see the interactive prompt ">>>". Type
print("Hello")
and hit ENTER. Poof, "hello" prints on the next line. That's the interactive interpreter and you can use it to try quick, short code snippets to play around.
Now, click File > New File. Another window opens that you can write longer programs in. type your print statement a couple times on separate lines. Now click Run > Run Module. IDLE will make you save your program first and then your code output will appear in the other (interactive) window.

That's the basics. Now find a good tutorial and dive in...


RE: program exited with code: -1073740791 - Clunk_Head - Dec-18-2019

Quote:“Hello world”

Did you copy these off of a website “ ”?
If so try to copy this instead:
print("Hello")
Notice the difference?