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
Wing IDE Posted by Garrett85 on 16 May 2009 at 5:26 PM
I'M trying to learn Python and as you might expect, I start with "Hello World". But I can't get anything to happen. How do I execute and view the end result of my code?
Report
Re: Wing IDE Posted by anthrax11 on 18 May 2009 at 7:41 AM
You should give a bit more information, it's hard to say what the problem is.

Firstly, you obviously need to make sure you have Python installed. If you do, then python programs should run with a double-click.

Then check the syntax, Python 2.6 does not need parentheses around the parameter while the new Python 3 does ( print "Hello World!" vs. print ("Hello world!") )

Next, check that you saved the file with the .py extension, not .txt or .py.txt or something like that.

If you get a black box flashing by, then it probably works, but you're not waiting for a keypress. Add raw_input('Press Enter...') if that's the case.

Running the program from the command line will show you any syntax errors in your program.

Have fun!
Report
Re: Wing IDE Posted by digital19 on 2 Jun 2009 at 7:29 PM
It may be working.

In the Wing IDE either press F5 or, in the debug menu choose start/continue.

Your 'Hello World' Should appear in the Debug I/O window beneath your code view. This window by default is in the same collection of tabs as the Python Shell window.



 

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.