Wing IDE - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Wing IDE

Garrett85Garrett85 Posts: 168Member
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?

Comments

  • anthrax11anthrax11 Posts: 511Member
    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 [link=http://python.org/]Python[/link] 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 [link=http://www.bleepingcomputer.com/tutorials/tutorial76.html]command line[/link] will show you any syntax errors in your program.

    Have fun!
  • digital19digital19 Posts: 1Member
    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.
Sign In or Register to comment.