I'm officially new to programming as of today (please be nice)
#!/usr/bin/python # File : helloworld.py print 'Hello World'
Am I correct in saying that the first two lines are just comments and python can work without them? The book I'm using stated the function of a shebang line but fails to explain what this particular one means. What does this shebang mean or do?
Lastly, when I type in the terminal 'python helloworld.py' the program appears. However, I move the program from the home folder to another folder and I can't open it. How do I tell the terminal to open this program when it's located in a different folder?
Thank you so much
This post has been edited by monster92: 14 June 2011 - 02:57 PM