justin12234
Posts: 8
Joined: Tue Jan 03, 2012 3:32 pm

Re: learning python?

Tue Jan 17, 2012 10:24 pm

im wanting to get a raspberry pi for programming and im currently tryin to understand python, but some parts of it are sooo confusing. ive gotten up to understanding variables and how it stores data, but once it stats talking about string and number variables i am completely lost. are there any decent books/websites that will help me understand it?

benatweb
Posts: 10
Joined: Mon Jan 02, 2012 8:53 pm

Re: learning python?

Tue Jan 17, 2012 10:37 pm

Liam Fraser made some excellent videotutorials for the Raspberry Pi introducing both linux and programming, using python: http://www.youtube.com/user/Ra.....iTutorials Those should give a good introduction.

There are books and websites, of course, but ask the python guys here about them, I also plan to learn it with the Pi.

User avatar
rurwin
Forum Moderator
Forum Moderator
Posts: 4258
Joined: Mon Jan 09, 2012 3:16 pm
Contact: Website

Re: learning python?

Tue Jan 17, 2012 11:08 pm

Here's another video on data types and variables.

http://www.khanacademy.org/vid.....%20Science

justin12234
Posts: 8
Joined: Tue Jan 03, 2012 3:32 pm

Re: learning python?

Tue Jan 17, 2012 11:31 pm

rurwin said:


Here's another video on data types and variables.

http://www.khanacademy.org/vid.....%20Science


ill have to look at those, thanks for the link

andyl
Posts: 265
Joined: Tue Jan 10, 2012 11:05 am

Re: learning python?

Thu Jan 19, 2012 9:36 am

From the sounds of it you are a complete newbie to programming (as well as python).

You don't say if you are using any tutorial at the moment but I would look at Learn Python The Hard Way - don't worry about the name, "the hard way" is really easier.

A lot of starting is not worrying about knowing everything perfectly.  Keep practising, slowly building up your knowledge, and hopefully those things you are unsure on will become clear as you go.

Also if you have any specific questions then ask them.

billio
Posts: 71
Joined: Thu Dec 15, 2011 8:25 am
Contact: Website

Re: learning python?

Thu Jan 19, 2012 9:36 am

Try "Dive into Python" by Marc Pilgrim : http://www.diveintopython.net/ . You can buy it in printed form or download it for free from the website.

User avatar
rurwin
Forum Moderator
Forum Moderator
Posts: 4258
Joined: Mon Jan 09, 2012 3:16 pm
Contact: Website

Re: learning python?

Thu Jan 19, 2012 10:58 am

Here's two more free ones:

Python for Informatics: Exploring Information

And the official Python tutorial is also very good. The first couple of chapters introduce it and cover installation. Chapter 3 starts off the language tutorial bit. Google "Python Documentation" That's how I always find it. You want the tutorial, not the "Beginners" link.

russ wall
Posts: 44
Joined: Tue Dec 27, 2011 3:49 pm

Re: learning python?

Thu Jan 19, 2012 2:37 pm

As a complete beginner with absolutely no understanding of any programming, over the last few days Ive put aside 2 hours every day and watched and rewatched the following on you tube
Bucky Python Programming Tutorials


Each 5 min lesson takes just one aspect and explains VERY simply.

After a couple of days I actually began to "think" in programming terms! Ok, I'm still on "Janet & John" book 1, but this first step actually gave me confidence to carry on. The important thing is I began to get a vocabulary together.

Well today I started watching

Khan academy as suggested by rurwin

and not only can I follow it, but have a simple understanding of the way each line is constructed as it is typed. I actually pumped a fist in the air when I could see what the next line was going to be in one exercise. Tiny steps, and keep repeating them is bringing results.

Oh, for a "Ladybird book of Python!




toxibunny
Posts: 1382
Joined: Thu Aug 18, 2011 9:21 pm

Re: learning python?

Fri Jan 20, 2012 5:57 am

Generally, strings are stuff you read and write, and number variables like floats and ints are stuff you do maths with.

One thing you have to remember is that anything you get with an input() type thingy is automatically a string to start off with, even if you just type in numbers, so if you want to do anything mathy with it, you have to convert it. Luckily, that"s really easy in python.

Hope that helps a little...
note: I may or may not know what I'm talking about...

iDaemon
Posts: 8
Joined: Sat Jan 14, 2012 12:10 pm

Re: learning python?

Sat Jan 21, 2012 12:39 am

A complete beginner, I'm learning Python from scratch in preparation for basic R-Pi programming fun with my kids.

Found an excellent free resource online by Al Sweigart called "Invent Your Own Computer Games with Python". Deliberately taking a functional, learn through fun programming approach, that shouldn't bore the kids. I'm finding it really quite easy going (so far).

Try this site.  http://inventwithpython.com/ and look for the big green download .pdf button  Hope that's of some use.

Regards

bobba_dwj
Posts: 14
Joined: Sat Jan 21, 2012 6:06 pm

Re: learning python?

Sat Jan 21, 2012 6:11 pm

justin12234 said:


im wanting to get a raspberry pi for programming and im currently tryin to understand python, but some parts of it are sooo confusing. ive gotten up to understanding variables and how it stores data, but once it stats talking about string and number variables i am completely lost. are there any decent books/websites that will help me understand it?


I'm currently teaching Python to a class of boys at high school, and when learning Python myself (I'm more from a C and C++ background) I found the following resources particularly useful:

http://www.swaroopch.com/notes/Python  (Byte of Python, download the PDF for either Python 2 or 3, whichever you are using)

http://www.ucs.cam.ac.uk/docs/.....s/PythonAB  (Cambridge University Python course for absolute beginners – download the Handout PDF)

http://thenewboston.org/list.php?cat=36  (Bucky's video tutorials on Python, very easy to listen to)

If you have any specific questions, then post away and I can try and help out.

- David

Gav
Posts: 4
Joined: Sat Sep 03, 2011 8:03 am

Re: learning python?

Sat Jan 21, 2012 9:12 pm

I Started learning Python when i first heard about the Raspberry Pi and found some Google videos very helpful i made a playlist of them, they helped me a lot.

Python Video Playlist

Found this pyschools fairly useful as well there's a couple of spelling mistakes in there but that adds to the fun of finding why something didn't work, Gives some nice practice functions to code also made me start trying to understand Algebra which i never got on with at school.

ackland.r
Posts: 2
Joined: Sat Jan 14, 2012 10:52 pm
Contact: Website

Re: learning python?

Mon Jan 23, 2012 9:02 am

the GASP module looks really useful for teaching students how to use python.

http://www.openbookproject.net.....sp/course/

this isn't yet available for python 3. Python 3 is not yet part of the Debian release either. Until this is the case, i think you should stick with python 2, and let users install python 3 if they wish.

User avatar
zag
Posts: 68
Joined: Tue Jan 03, 2012 12:10 am
Contact: Website

Re: learning python?

Mon Jan 23, 2012 9:37 am

I've been collecting a load of those here:

http://www.raspberrypiforums.c.....'t=44

Lots of ebooks as well for anyone who prefers reading on a tablet.
Unofficial Raspberry Pi Forums - www.raspberrypiforums.com

Return to “Python”