[Tutor] (no subject)
otu at iptech-ghana.com
otu at iptech-ghana.com
Mon Nov 3 17:34:55 CET 2008
Thank You!
Kent and Kerbros.
I got it
Regards,
Bennedy.
> On Sat, Nov 1, 2008 at 7:17 AM, <otu at iptech-ghana.com> wrote:
>
>>
>> I am struggling with how to enable executable files. I copied the ff
>> program on idlle non-interactice and run it.
>>
>> the_world_is_flat =1
>> if the_world_is_flat:
>> print"Be careful not to fall off"
>>
>> The result came out on the interactive window. I saved this as
>> "example.py" on the desktop. The python icon appears on the the desktop
>> alright. When I attempt to run it by double clicking the icon, only a
>> black DOS window flashes.
>
>
> The problem is that the DOS window closes when the program exits. Try
> adding
> the line
> raw_input("Press return to exit ")
> to the end of your program.
>
> Kent
>
More information about the Tutor
mailing list