Question:
Why won't my Hello World program work?
Stewart
2012-07-18 20:46:39 UTC
I am using Windows 7 with Python 2.5.4 and I can't get my Hello World program to work. I wrote it in idle using print ("Hello, world!") and saved it as hello.py. I've been searching the web for more than 3 hours and I still can't get it to work. Does anyone have the answer!?
Four answers:
James Bond
2012-07-18 20:55:17 UTC
I have my IDLE installed.

1. I have selected New Window from File option. I got a new window where I have typed print ("Hello World");

2. In the same window there is Run option in which I have selected run module. It got exeucted and displaye Hello World in the IDLE main widnow
Silent
2012-07-18 20:48:39 UTC
We can't tell you the answer when you haven't really told us the question.



All you've said is that you "can't get it to work". So what's the problem? Is there an error message? If so, what does it say? If not, what does happen when you run it?
Majbuddin
2012-07-18 20:50:59 UTC
It doesn't support print, i think. I used it more than a year ago.

try

Echo "hello world"

it may be correct.
anonymous
2014-06-19 00:08:35 UTC
challenging situation research over google and yahoo this can help


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...