[Tutor] no output

Alan Gauld alan.gauld at btinternet.com
Mon Mar 23 09:39:58 CET 2009


"John Jenkinson" <johnjenkinson1 at gmail.com> wrote 

>> My Code:
>>
>> # Game Over - Version 2.0
>> # Demonstrates the use of quotes in strings
>>
>> print "Program 'Game Over' 2.0"
>>
>> raw_input("\n\nPress the enter key to exit.")
>>
>> shell's response:
>>
>> >>> ================================ RESTART
>> ================================
>>

See my response to your previous mail.
You still haven't told us which version of Python you are using.
If it is Python v2.x then:
Run the program from the file manager (windows explorer) 
and see if you get a different response.

If it is Python v3.x
Place parentheses () around the content of your print statements:
print ( "Program 'Game Over' 2.0" )

There are a lot of changes between v3 and previous versions 
so its important we know which version you are using. Most 
tutorials are still on v2.

HTH,

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/l2p/



More information about the Tutor mailing list