User avatar
r3ndrag
Posts: 5
Joined: Tue Jan 21, 2014 9:34 am
Location: Australia

Learning Python on Pi

Wed Jan 22, 2014 12:38 am

Hey all,
I wish to learn Python programming language on Pi. What is the best course of action to take from a beginners start point? What are some good programs to practice developing with ect? I want to eventually develop my own software and games but don't know were to start. How did you start learning? :?: :?:
When in doubt choose C++

ame
Posts: 3172
Joined: Sat Aug 18, 2012 1:21 am
Location: Korea

Re: Learning Python on Pi

Wed Jan 22, 2014 12:51 am

1. Go to Google.
2. Type "learn python" into the search box.
3. Follow your nose.

Actually, I found the book "Dive into Python" to be a well-paced introduction to doing useful things with Python, but I was always using Google to find other examples and references.

If you have access to a local library then they may have some Python books you can borrow. I sometimes find that having a printed book to refer to is much better than flipping between different windows looking at stuff.

Finally, the best way to learn is to have a specific task in mind, then write a program for that task. It could be something trivial, or it could be to rewrite something you've already done in another language.

Have fun!

User avatar
r3ndrag
Posts: 5
Joined: Tue Jan 21, 2014 9:34 am
Location: Australia

Re: Learning Python on Pi

Wed Jan 22, 2014 1:07 am

Thank you :)
It seems I need to figure out what I want to do, of course a nice "Hello World" will be first, but as for a specific task that will take some thought. Any ideas for something simple? Maybe just a HDMI resolution changer. Dunno, will have a good think about it. I also wish to ask, is Python the best or one of the better languages for game design? Thanks
When in doubt choose C++

ame
Posts: 3172
Joined: Sat Aug 18, 2012 1:21 am
Location: Korea

Re: Learning Python on Pi

Wed Jan 22, 2014 1:28 am

Many people say that Python is one of the better languages for anything, but these days it's as much due to personal preference as any technical difference. Since you are starting out then you're not going to hit any architectural barriers, and anything you learn is bound to be useful anyway (even if you learn that Python is not for you, or not appropriate for what you are doing).

For games, take a look at pygame. It might be what you want. Or not.

http://www.pygame.org/docs/tut/intro/intro.html

Reynaldo2333
Posts: 5
Joined: Sun Dec 29, 2013 9:37 pm

Re: Learning Python on Pi

Wed Jan 22, 2014 2:37 am

also look for projecteuler and do those problems with python

on coursera.org perhaps you can find some courses on python.
for more information on python:

http://docs.python.org/3.2/
http://inventwithpython.com/chapters/
http://stephensugden.com/crash_into_python/
http://www.greenteapress.com/thinkpytho ... index.html
http://www.youtube.com/watch?v=JOuCuLHmk3o

Bazzer
Posts: 9
Joined: Sun Jan 05, 2014 11:13 am

Re: Learning Python on Pi

Sun Jan 26, 2014 4:34 am

Good online guide that I've been working my way through:
http://learnpythonthehardway.org/book/

Return to “Python”