Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78459 > unrolled thread

Teaching Python

Started byGabor Urban <urbangabo@gmail.com>
First post2014-09-29 15:18 +0200
Last post2014-09-29 11:41 -0700
Articles 4 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  Teaching Python Gabor Urban <urbangabo@gmail.com> - 2014-09-29 15:18 +0200
    Re: Teaching Python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-09-29 23:37 +1000
    Re: Teaching Python Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-09-29 11:44 -0400
    Re: Teaching Python John Ladasky <john_ladasky@sbcglobal.net> - 2014-09-29 11:41 -0700

#78459 — Teaching Python

FromGabor Urban <urbangabo@gmail.com>
Date2014-09-29 15:18 +0200
SubjectTeaching Python
Message-ID<mailman.14468.1411996713.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Hi,

my 11 years old son and his classmate told me, that they would like to
learn Python. They did some programming in Logo and turtle graphics, bat
not too much.

Doesn anybody has an idea how to start?

-- 
Urbán Gábor

Linux is like a wigwam: no Gates, no Windows and an Apache inside.

[toc] | [next] | [standalone]


#78461

FromSteven D'Aprano <steve+comp.lang.python@pearwood.info>
Date2014-09-29 23:37 +1000
Message-ID<54296084$0$12979$c3e8da3$5496439d@news.astraweb.com>
In reply to#78459
Gabor Urban wrote:

> Hi,
> 
> my 11 years old son and his classmate told me, that they would like to
> learn Python. They did some programming in Logo and turtle graphics, bat
> not too much.
> 
> Doesn anybody has an idea how to start?

The Internet is a big place, I always start by searching :-)

https://duckduckgo.com/html/?q=python+tutorial+for+kids
https://duckduckgo.com/html/?q=python+turtle+graphics
https://startpage.com/do/search?q=python+programming+for+children

Are you looking for instruction on how you can teach them, or for
self-directed learning they can do on their own?


-- 
Steven

[toc] | [prev] | [next] | [standalone]


#78471

FromSeymore4Head <Seymore4Head@Hotmail.invalid>
Date2014-09-29 11:44 -0400
Message-ID<4vui2ahng4fr7dh66c084olrmp4fcnam1e@4ax.com>
In reply to#78459
On Mon, 29 Sep 2014 15:18:31 +0200, Gabor Urban <urbangabo@gmail.com>
wrote:

>Hi,
>
>my 11 years old son and his classmate told me, that they would like to
>learn Python. They did some programming in Logo and turtle graphics, bat
>not too much.
>
>Doesn anybody has an idea how to start?

I ordered this book from the library a few weeks ago.  It just came in
yesterday.  
Python for kids.  Jason R Briggs

This was also a good page for starters.
http://www.practicepython.org/

[toc] | [prev] | [next] | [standalone]


#78473

FromJohn Ladasky <john_ladasky@sbcglobal.net>
Date2014-09-29 11:41 -0700
Message-ID<ac4b9874-50ac-414d-baa5-4b70ea82a002@googlegroups.com>
In reply to#78459
I am actually teaching Python as a side job.  My students have ranged from eighth graders, up to a Silicon Valley hardware engineer who had no coding experience, but who needed to do some test engineering.

My wife is an elementary school teacher.  We occasionally talk about age-appropriate learning, and pedagogical strategies.  I once watched a research biologist try to explain restriction enzymes to my sixth-grade son.  It was painful to watch.  Sure, my son is a smart kid, but there was no way he was going to understand what she was talking about without some background.

For my younger Python students, I interact with them directly, sitting by their side while they type.  Initially, I do not ask them to read any computer documentation.  It's too difficult for them, even the official Python tutorial.   The tutorial is aimed at an adult reader who has at least a little computer experience -- and sometimes, quite a lot.  Just read Chapter 1.  Imagine that you're 14 years old, reading that.  Even if you have already programmed in one of the languages aimed at children, like Scratch, you will be in way over your head.  

Now, even though I think that the Python tutorial is too hard for young students to read, I do cover much of the MATERIAL in that tutorial, and in approximately the same order.  I sit the student down in front of the interpreter, explain what an interpreter is, and then have them type simple mathematical expressions.  I introduce variable names, and then strings, and lists.  This is, more or less, the material in Chapter 3 of the tutorial -- although lists are not discussed until Chapter 5.

Next, I introduce the idea of a program file, and have them start working with an editor.  That's not in the tutorial at all.  I introduce the print() function (briefly mentioned in Chapter 3), and the for statement (Section 4.2).  Once you introduce the for statement, you need to explain code blocks, the use of a colon at the end of a line, and the use of indentation.

This is enough information to get the student to write short programs.  I start with single loops.  Then, I have the student write a multiplication table program.  Getting the student to grasp the idea of a loop inside a loop can sometimes be challenging.

The next three things that I teach are the if statement (Section 4.1), the input() function (which appears in Chapter 4 of the tutorial, without any introduction or explanation), and string concatenation using the + operator.  This is enough to get the student to write a program which accepts an input string, and prints out an alphabetized version of that string.  I do not show the student the sorted() function until after they write the program with what they know!

Typically, I move on to the range() function and slicing operations next.  But unless you are working with very bright kids, that should be enough to keep them busy for a while.  :^)

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web