Let’s start by saying that I don’t want to start a religious war. I like Ruby but I also like Python. These two languages are very good in their own right and are equally powerful and useful. Personally I have a slight preference for Ruby. I find it more whimsical and more “creative” than Python. Having said that this trait can also be a downside.
The story goes as follow: I was looking for a programming language to teach to my 8-year-old son (it’s never too early to start). So, after having done some research few trial and errors I decided to teach him Python. Why?
Here is why:
Python’s has “Turtle” a Logo-style interactive graphic shell when you can write commands and make geometric shapes. The child sees his/her results right away. Instant gratification. You can combine a geometry lesson with a programming lesson all at once. Python’s syntax is quite rigid and there is only one (right) way to do things. This is good for a beginner, less room for error. Python’s is very clean and easy to read. I always wanted to learn more about it so it was a good excuse for me to start. This is my first lesson: drawing a square and a triangle with Turtle. My son liked it a lot and had fun doing it. After we finished he asked me to keep going with the programming lessons.
The result as appears on the screen:
Fig.1 - This is the screen capture of the executed code
##The source code:
A couple of good links to start if you want to know more about either Python or Turtle:
- Turtle’s built in commands
- Kids Coding Lesson with Python
- Book: Python for Kids
- Short programming projects for kids