Teaching Youngsters Programming

Drop in for a chat and a cup of tea

132 posts   Page 6 of 6   1, 2, 3, 4, 5, 6
by John Coleman » Sun Jun 24, 2012 10:59 am
I've just got my RPi, with a view to checking out its capability. Once upon a time I was a physics teacher and later became a software engineer because programming is so much fun.
So I'm disappointed, like others, that ICT in schools often seems to come down to using Word and Excel. I like the idea of catching kids early and showing them how to create simple programs.
I think KTurtle would be good for that. It is fun, and procedural via its learn command.
See Turtle tracks on my (RPi hosted) blog.
Posts: 8
Joined: Thu Jun 21, 2012 5:07 pm
by John Coleman » Wed Jul 18, 2012 9:33 am
John Coleman wrote:See Turtle tracks on my (RPi hosted) blog.


Oops I lost my static IP address. My ISP withdrew RPi's static IP and I can't afford an upgrade to replace it. So I have switched to Dynamic DNS via http://dalriada.hopto.org/rpi , thanks to no-ip.com and my Draytek router.

Turtle tracks is now at http://dalriada.hopto.org/rpi/?p=56
Posts: 8
Joined: Thu Jun 21, 2012 5:07 pm
by jmacey » Wed Jul 18, 2012 9:51 am
For kids the python turtle module is great.

http://docs.python.org/library/turtle.html

It's pre-installed by default and you can start doing basic drawing with a few commands

Code: Select all
import turtle

for i in range(0,5) :
   turtle.forward(25)
   turtle.left(45)
Posts: 135
Joined: Thu May 31, 2012 1:05 pm
by John Coleman » Wed Jul 18, 2012 4:22 pm
jmacey wrote:For kids the python turtle module is great.
http://docs.python.org/library/turtle.html
It's pre-installed by default and you can start doing basic drawing with a few commands


Thanks, that insipred me to check out python-turtle-graphics. See Python tracks on my (RPi hosted) blog. There are loads of examples and they get quite sophisticated - plenty to keep young whiz-kids interested.
Posts: 8
Joined: Thu Jun 21, 2012 5:07 pm
by jmacey » Wed Jul 18, 2012 4:26 pm
Wow that was quick work, looks good.
Posts: 135
Joined: Thu May 31, 2012 1:05 pm
by jmacey » Wed Jul 18, 2012 4:29 pm
BTW this is a really good video about using it for teaching kids http://blip.tv/pycon-us-videos-2009-201 ... le-1957160
Posts: 135
Joined: Thu May 31, 2012 1:05 pm
by zarsoft » Wed Jan 08, 2014 12:04 am
Line numbers like verses in the Bible



Code: Select all
   5 :
   7 REM ZX Spectrum BASIC without line numbers
   8 REM written by Zarsoft
   9 :
  10 REM init subrotines
  15 LET factorial=100:
  19 :
  20 REM ----------------------
  21 REM    test factorial
  22 REM ----------------------
  30 PRINT "max= ";:
   INPUT max:
   PRINT :
   FOR n=1 TO max:
   GO SUB factorial:
   PRINT "fact(";n;")= ";result:
   NEXT n:
   STOP :
   GO TO 10000
  95 :
 100 REM ----------------------
 101 REM     factorial
 102 REM ----------------------
 110 LET result=n:
   FOR f=n-1 TO 2 STEP -1:
   LET result=result*f:
   NEXT f:
   RETURN
 999 :
Posts: 1
Joined: Tue Jan 07, 2014 11:58 pm