yanik
Posts: 5
Joined: Mon Oct 08, 2012 9:35 pm

new to python

Mon Oct 08, 2012 9:39 pm

I wanna teach myself the latest python soon, i hope. I've got this book called Dive into python 3. Is this a good book to begin with? I wanna learn the entire language. Which others books do i need? Which book do i need before or after reading dive into python 3?

3870x2
Posts: 3
Joined: Wed Sep 26, 2012 6:15 pm

Re: new to python

Tue Oct 09, 2012 2:57 pm

The best way to learn from my experience is start with something easy, and program for it. Books are nice, if you have the time for it.

For instance, first program a number guessing game. The user has 10 tries to guess a number between 1 and 100, and the program tells them if they are high or low. If you really want to get fancy, make a scoreboard with the top 10 tries.

The move on to making a small adventure game, with 10 rooms. The user can move between the rooms using whatever controls you give them, and even interact with something in the rooms. Once again if you want to get fancy, create a dynamic map on the upper right that gives them a rough diagram of where they are.

Ever time you get stumped and don't know how to do something, use the book or use google to find the answer. This is the fastest way to learn programming languages in my experience.

User avatar
fdion
Posts: 307
Joined: Sun Sep 16, 2012 2:33 pm
Location: North Carolina, USA
Contact: Website

Re: new to python

Tue Oct 09, 2012 3:33 pm

yanik wrote:I wanna teach myself the latest python soon, i hope. I've got this book called Dive into python 3. Is this a good book to begin with? I wanna learn the entire language. Which others books do i need? Which book do i need before or after reading dive into python 3?
Have you programmed before, if so which language(s) and for how long? Have you done anything with python yet? Are you in school? Are you wanting to learn python for a job? For fun? There are lots of factors to consider as to which book is best.
Francois
http://raspberry-python.blogspot.com - http://www.3dFutureTech.info - @f_dion

yanik
Posts: 5
Joined: Mon Oct 08, 2012 9:35 pm

Re: new to python

Sat Oct 13, 2012 7:44 pm

I wanna learn python for fun. Does the book dive into python 3 teach u about the latest python version? Or is it about an older version?

User avatar
malakai
Posts: 1382
Joined: Sat Sep 15, 2012 10:35 am
Contact: Website

Re: new to python

Sat Oct 13, 2012 8:00 pm

http://getpython3.com/diveintopython3/

Dive Into Python 3 covers Python 3 and its differences from Python 2. Compared to Dive Into Python, it’s about 20% revised and 80% new material. The book is now complete
http://www.raspians.com - always looking for content feel free to ask to have it posted. Or sign up and message me to become a contributor to the site. Raspians is not affiliated with the Raspberry Pi Foundation. (RPi's + You = Raspians)

yanik
Posts: 5
Joined: Mon Oct 08, 2012 9:35 pm

Re: new to python

Sat Oct 13, 2012 8:55 pm

I just finished reading that python has a new release. I wanna learn it for fun. Please tell me which books i need in order to learn the latest release of python?

User avatar
billb
Posts: 177
Joined: Wed Sep 19, 2012 10:27 pm

Re: new to python

Sat Oct 13, 2012 9:24 pm

Python 3 is the latest major release, so you'd want to look for books based on Python 3 (not 2.x).

yanik
Posts: 5
Joined: Mon Oct 08, 2012 9:35 pm

Re: new to python

Sat Oct 13, 2012 11:57 pm

billb wrote:Python 3 is the latest major release, so you'd want to look for books based on Python 3 (not 2.x).
But i can't find those books. That is y i'm here

User avatar
billb
Posts: 177
Joined: Wed Sep 19, 2012 10:27 pm

Re: new to python

Sun Oct 14, 2012 12:10 am

Oh. Well here:

Various books (start with Introductory):
http://wiki.python.org/moin/PythonBooks

Or this one is free for the online/PDF version:
Invent Your Own Computer Games with Python

And I personally like O'Reilly's "Head First" series of programming books:

Head First Python
http://shop.oreilly.com/product/0636920003434.do

And of course there's Google ... ;)
http://lmgtfy.com/?q=python+3+books

GrayHatter
Posts: 18
Joined: Tue Sep 25, 2012 6:29 pm

Re: new to python

Sun Oct 14, 2012 12:30 am

3870x2 wrote:The best way to learn from my experience is start with something easy, and program for it. Books are nice, if you have the time for it.

For instance, first program a number guessing game. The user has 10 tries to guess a number between 1 and 100, and the program tells them if they are high or low. If you really want to get fancy, make a scoreboard with the top 10 tries.

The move on to making a small adventure game, with 10 rooms. The user can move between the rooms using whatever controls you give them, and even interact with something in the rooms. Once again if you want to get fancy, create a dynamic map on the upper right that gives them a rough diagram of where they are.

Ever time you get stumped and don't know how to do something, use the book or use google to find the answer. This is the fastest way to learn programming languages in my experience.
QFE! Learning to program doesn't come from a book, but from playing around and building code.

User avatar
jackokring
Posts: 818
Joined: Tue Jul 31, 2012 8:27 am
Location: London, UK
Contact: ICQ

Re: new to python

Sun Oct 14, 2012 12:34 am

I agree with most of the above, but would qualify that 99% of the time learning to program comes from programming, and 1% of the time 'The Art of Computer Programming' book and similar come in very useful to learn.

But if you add brackets around your parameters in python 3 of many python 2 examples, it will work.
Pi[NFA]=B256R0USB CL4SD8GB Raspbian Stock.
Pi[Work]=A+256 CL4SD8GB Raspbian Stock.
My favourite constant 1.65056745028

exaudimus
Posts: 5
Joined: Tue Sep 04, 2012 7:24 pm

Re: new to python

Tue Oct 16, 2012 8:34 pm

billb wrote: Or this one is free for the online/PDF version:
Invent Your Own Computer Games with Python
This book is really good! I used it to teach myself how to program in python. It is not a book that teaches you evry single thing about python, but it is a good beginning. I belive it also has a sequal or two, if you look on the website.

bbailey9
Posts: 6
Joined: Thu Oct 18, 2012 6:55 pm
Location: Lafayette, IN

Re: new to python

Fri Oct 19, 2012 8:47 pm

Head first Python is a great book to learn Python 3. Do as the book suggests and actually write the code out for the examples. That is how you'll learn the most, by actually writing programs. Good Luck!

yanik
Posts: 5
Joined: Mon Oct 08, 2012 9:35 pm

Re: new to python

Sat Oct 20, 2012 7:07 pm

PPl, i wanna learn python 3.3.0. It is different from simply python 3. That's y im here. Thx 4 all answers, but i can't find anything about this new release of python, please help me.

Sleep Mode zZ
Posts: 319
Joined: Sun Aug 19, 2012 5:56 am
Location: Finland

Re: new to python

Sat Oct 20, 2012 7:34 pm

yanik wrote:PPl, i wanna learn python 3.3.0. It is different from simply python 3. That's y im here. Thx 4 all answers, but i can't find anything about this new release of python, please help me.
http://docs.python.org/py3k/whatsnew/3.3.html

BlackJack
Posts: 288
Joined: Sat Aug 04, 2012 8:28 am
Contact: Website

Re: new to python

Sun Oct 21, 2012 1:47 pm

@yanik: Just start to learn Python already. You are asking these questions for almost two weeks now instead of diving in. If you really going to use Python you may be forced to use any of the recent versions anyway, that is anything from Python 2.7.x to 3.x. It's not that 3.3 is a completely different language from 3.2. Even 2.7 and 3.3 are quite close. Someone who learned 2.x should be able to pick up the differences to 3.x easily.

Code: Select all

while not self.asleep():
    sheep += 1

MarkVis
Posts: 1
Joined: Tue Oct 23, 2012 8:30 am

Re: new to python

Wed Oct 24, 2012 11:31 pm

try this:

http://www.codecademy.com/tracks/python

they teach python here hands on!

should be easy enough

Return to “Python”