LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Well-Written Python Tutorials (http://www.linuxquestions.org/questions/programming-9/well-written-python-tutorials-600950/)

LinuxCrayon 11-19-2007 06:13 PM

Well-Written Python Tutorials
 
I've been searching for a while, and I can't really find a suitable Python tutorial. Below I'll list a few things about me and my goals.

About me:
  • new to Linux- using OpenSuSE 10.3 x86_64
  • new to programming- I've done a little bit in C#, but not too much.
  • computer science major- I'll be starting university in January, with a major in Computer Science.

Goals:
  • create a program to backup folders and files.
  • create a program to store bank numbers of friends and relatives for wire transfers
  • create an address book program (perhaps incorporating the bank program)
  • create a side-scrolling game

As you can see, I do have specific goals in mind and there are things I'd definitely like to do. With the exception of the side-scrolling game, I'd like to initially create all of those programs in a CLI environment, later adding a GUI for other users. Also, I understand that Python is an excellent cross-platform language, so it would be rather trivial to write a program on Linux and port it to Mac OS X, Windows, FreeBSD, etc...

Also, I have a number of ideas on how to implement the first three programs, so even though I don't know how to really program, I do have designs written on how they can be implemented.

Finally, I'm looking for tutorials that are easy. I'm not looking for the Kerrighan & Ritchie's The C Programming Language for Python. Something that moves at a moderate pace would be good.

Thanks for any help you can provide!

PAix 11-19-2007 07:29 PM

Dive into Python is the book you want. Buy it if you need it in a book, read it online if you wish, or download it and head across to hte library printer to print it 2-up duplex, or 4-up duplex if you have good eyes and feel guilty. Honestly it has to be THE Python book of choice. And it should still leave you the cost of a good book should you wish to repeat the exercise with another language. Don't forget to ask here again though, who knows you might get to keep the price a gain a second time.

I can recommend Bash, Bash and Sed as three scripting tools to become familiar with - probably in that order, picking up a smattering of regular expressions along the way. There is more than ample documentation and examples on line. Personally Awk and Bash are my favourites and I find a bit of difficulty with Sed because I haven't used it sufficiently. Good luck with your studies.
We hope to see you back here with the corners that you need assistance with. I'm sure you will have exhausted your own resources before you ask for assistance though. That will gain you friends that respect the effort.

Give the book a day's reading and come back and tell us if it's what you are looking for. I am sure there are lots of favourite tut's online, but I think the book will take you along the route you are looking for.

Regards,
PAix

LinuxCrayon 11-19-2007 07:50 PM

@PAix:
Thanks. I appreciate the pointer. I've been looking for a while. I'll give it a more in-depth look next week after vacation.

PAix 11-19-2007 09:00 PM

Chapter 2.3. Documenting Functions bottom of page 3 is a link to a complete and comprehensive tutorial. (advert over)
Have a super vacation.

PAix


All times are GMT -5. The time now is 06:39 PM.