Modified IDLE

Dean B writes:

I’m on page 137 of your book Python For Kids (chapter 10). I noticed a sentence at the top of the page, and have a question on it. It says “This won’t work if you’re using the modified version of IDLE that we set up in Chapter 1.” I didn’t remember seeing anything *in chapter 1...

Continue reading...

A question about tkinter update

Feng writes:

I bought a chinese version of your book. when i tried the paddle ball at this step: ‘Bounce (example 4) - ball moving up and down’ at the first part of the code, you add a line tk.update(). I cannot see why this is *necessary, since there are no balls moving at all. Then, i com...

Continue reading...
Restarting the Bounce game (revisited)

Restarting the Bounce game (revisited)

Robin T writes (excerpted):

I am currently at chapter 14, i already made my first game called “Bounce”. When the game is over, i want the user to push a button or a mouse click to restart the game. But i don’t know how to do this.

Someone else asked a similar question a few years ago, so...

Continue reading...

Problem with paddle ball animation

Hayden B writes:

I am trying to code the bouncing red ball in Chapter 13 but the animation is not working. *I have checked the code, and it makes sense, but I am getting these errors when I run:

RESTART: C:\Users\rf\AppData\Local\Programs\Python\Python36-32\Files .py\paddleball.py Traceback...

Continue reading...
Trouble with turtles

Trouble with turtles

Theodore M writes:

*Hello. Working in python with my daughter, but stuck on this error:

Python 3.6.4 (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type “copyright”, “credits” or “license()” for more information. >>> import turtle Trace...

Continue reading...

How many hours

Xing Y writes:

This is Xing Yanchao from the city of Qingdao, Shandong province, China, a big beautiful coastal city with 7 million citizens. I’m very interested in teaching kids to program, and plan to choose your book as the teaching material (In Chinese, \^_\^). *The kids may be between 8...

Continue reading...

Multiplying Strings

Robin L writes (excerpted):

I am trying to teach myself how to code and thought this was a good place to begin. I am having trouble with the “multiplying strings” section. I don’t know anyone else who codes so I am hoping that you are still available at this email. This is the *part about pri...

Continue reading...
Stickman refusing to move

Stickman refusing to move

Haran R writes:

I tried out the code for the two games and have successfully run the first game (bounce). The second game however did not run like how i wished it to. I followed the book’s instructions to the letter, used the GIMP software to create the images, saved it in a directory and sa...

Continue reading...

Tcl Error

丁明 writes (edited for spelling):

In your book python for kids chapter 13, when I run the program, the python shell has a error I can’t understand. my python version 3.6.0. Thank you for your reply!!

tcl-error.png

I’m not sure if the Chinese edition has captured the text on page 199 of the English vers...

Continue reading...