concept size in category python

appears as: size, size, The size
Get Programming: Learn to code with Python

This is an excerpt from Manning's book Get Programming: Learn to code with Python.

  • You’re trying to access an index in the string that’s beyond the size of the string.
  • Figure 37.1. An 800 x 200 pixel window with the title “My first GUI” and a background color of gray

    Write a GUI game using the tkinter library. The game simulates a game of tag. You should create two players inside a window. The players’ position and size can be randomized at the start. Both players will use the same keyboard: one will use the W, A, S, D keys, and the other will use the I, J, K, L keys to move their piece. Users decide which one will try to catch the other. Then, they’ll move around the window using their respective keys to try to touch the other player. When they touch the other player, the word Tag should appear somewhere on the screen.

    This code is used by any player object created. It follows the abstraction and modularity principles because it’s under the Player class, which means you have to write it only once but it can be reused by any of the objects.

    sitemap

    Unable to load book!

    The book could not be loaded.

    (try again in a couple of minutes)

    manning.com homepage
    test yourself with a liveTest