BBC micro:bit with Python for Kids

BBC micro:bit with Python for Kids

Janick writes:

My son got "Python for Kids" (the dutch translation) from Sinterklaas last december (Sinterklaas is the local Santa in Belgium and the Netherlands). He really enjoyed it! The weeks following he read and coded almost every day until he finished the book. Some days after, I ment...

Continue reading...

Breaking out of loops

Sherry W writes (excerpted):

Excellent book so far for my grandson.

On page 78 should it read?:

while True:
    lots of code here
    lots of code here
    lots of code here
    if some value == False
        break

Book is written very well for that age group. It’s great to h...

Continue reading...
Problem with bouncing ball

Problem with bouncing ball

Lennier M writes:

I am on page 202 of your book, but when I followed your instructions, the ball stopped moving, instead of moving in multiple directions. Here is my code:

class Ball:
    def __init__(self, canvas, color):
        self.canvas = canvas
        self.id = canvas.create_oval(...

Continue reading...
Long and short dashes

Long and short dashes

Jan vK writes:

here’s an example from your book that gives an error: count_down_by_twos = list(range(40, 10, −2)) SyntaxError: invalid character in identifier please inform me how to solve this problem

It looks like you might have copied-and-pasted the code? Perhaps from the digital version...

Continue reading...