Saturday, August 31, 2013

Execute Python Script in Windows


Simple Note

Simply type FILE_NAME.py then press Enter in cmd.

Code:

helloworld.py

h = "hello"
w = "world"
print(h + " " + w + "!")


Result:



Download:

https://github.com/benbai123/Python/blob/master/Practice/Basic/execute_script_file/helloworld.py

Reference:

http://docs.python.org/3.3/tutorial/interpreter.html

No comments:

Post a Comment