Python

Moderators: None (Apply to moderate this forum)
Number of threads: 474
Number of posts: 1166

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
raw input("") Posted by Garrett85 on 21 Sept 2009 at 9:11 AM
I've just started a book on programming wit Python after getting very frustrated with C++ and C#. But I can't get this very simple program to compile, it says there is something wrong with "input"

# Game over
# Demonstrates the print command

print "Game Over"

raw input("\n\nPress Enter to exit.")


Thanks for any and all reply's.
Report
Re: raw input("") Posted by Med7at on 22 Sept 2009 at 3:47 AM
the right code is :
raw_input("press enter to exit")

not :
raw input("press enter to exit")

Report
Re: raw input("") Posted by utpalendu on 18 Apr 2010 at 10:25 PM
Hi this raw_input("") not raw input raw_input() is built-in function.
Report
This post has been deleted. Posted by utpalendu on 18 Apr 2010 at 10:44 PM
This post has been deleted.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.