The script is compiling just fine. Your problem is the fact that the program runs too fast to see. It is displaying 'hello world'
, but because there is nothing to keep the program running the program exits and the window closes immediately after it begins. As Thomas K pointed out a simple solution is to add input()
to the end of your hello.py
script, in order to keep the program running until the user hits enter. Another option is to create a loop or something along those lines, but input()
works just fine for keeping text displayed.
Hope this helped.