Stickman Moves

Stickman Moves

Alex Z writes (edited):

I’m playing with the last chapter game, cf. the stickmangame7.py file. I’m a little confused about how the key presses are expected *to cause the character [to] move.

If the player hits the right or left key, the character starts moving but keeps moving and doesn’t sto...

Continue reading...

PfK and iPython

Jobakhan writes (edited):

Using this code import sys
def moon_weight():     print(’Please enter your current Earth weight’)
    weight = float(sys.stdin.readline())
    print(’Please enter the amount your weight might increase each year’)
    increase = float(sys.stdin.readline())
    print...

Continue reading...
iPad Pro and Pythonista

iPad Pro and Pythonista

Lucia C writes:

I am currently reading your book but do not have access to a computer. I do however have my Ipad pro.

There is an app available called Pythonista 3, are you familiar with this app and would you recomend it to follow your book?

Unfortunately, Pythonista has it’s own custom U...

Continue reading...

Trouble with GIMP

Tom writes (excerpted):

I’m learning Python from your book and I’m finding it a great resource. However, I’m at the point where I’m creating the StickMan game and I’m having issues. I’m using an iMac running MacOS Sierra 10.12.6 The version of GIMP that I downloaded is 2.8.18. Specifically, ...

Continue reading...

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...

Downton Wars

So I totally would have watched more than one series of Downton Abbey if I’d realised the Star Wars connection…

downton-wars.webp

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...