Alexcny
12-23-2011, 02:37 AM
I've decided that I wanted to learn some programming basics. I started by using this guide http://learnpythonthehardway.org/book/index.html
It took me an embarrassingly long time to get through exercise 0 which is getting python installed and running.
I moved to exercise 1 http://learnpythonthehardway.org/book/ex1.html and am failing miserably. The step tells you to create a basic code using the print command. It doesn't say what program to use to write this but I'm assuming its gedit, which the tutorial asked me to install earlier.
It says to save that file as ex1.py but does not list what directory I should save this in. I saved the code in a folder I created in my personal folder.
When I try to run this program in the terminal I get an error message that python cannot run the file because of [errno 2] No such file or directoy.
I'm guessing this has to do with how I'm saving the code but I am stumped.
Any help would be greatly, greatly appreciated.
Thanks in advance!
It took me an embarrassingly long time to get through exercise 0 which is getting python installed and running.
I moved to exercise 1 http://learnpythonthehardway.org/book/ex1.html and am failing miserably. The step tells you to create a basic code using the print command. It doesn't say what program to use to write this but I'm assuming its gedit, which the tutorial asked me to install earlier.
It says to save that file as ex1.py but does not list what directory I should save this in. I saved the code in a folder I created in my personal folder.
When I try to run this program in the terminal I get an error message that python cannot run the file because of [errno 2] No such file or directoy.
I'm guessing this has to do with how I'm saving the code but I am stumped.
Any help would be greatly, greatly appreciated.
Thanks in advance!