0

im completely new to python and not particularly experienced with anything that isnt running off of a web server...

Im reading 'A byte of Python' and while my first shell script worked, which was just the 'Hello world', but if I create a separate file and have saved it within the python31 directory which was created when I installed python onto my pc... the book says that if I set the first line of the separate file to

#!/usr/bin/python

and then in the shell just type

python helloworld.py

it will run... but it doesnt...

where do i save files?
what should i set as the path to the interpreter?

thanks

3
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by vegaseat
0

You can type whatever code you want and just save it as "<whatever>.py" and that's it! It should work even if you double-click it!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.