Skip to content
Register Sign in Wishlist
Python by Example

Python by Example
Learning to Program in 150 Challenges


  • Date Published: June 2019
  • availability: Temporarily unavailable - available from December 2019
  • format: Paperback
  • isbn: 9781108716833

£ 16.99

Add to cart Add to wishlist

Other available formats:

Looking for an inspection copy?

This title is not currently available on inspection

Product filter button
About the Authors
  • Python is today's fastest growing programming language. This engaging and refreshingly different guide breaks down the skills into clear step-by-step chunks and explains the theory using brief easy-to-understand language. Rather than bamboozling readers with pages of mind-numbing technical jargon, this book includes 150 practical challenges, putting the power in the reader's hands. Through creating programs to solve these challenges the reader will quickly progress from mastering the basics to confidently using subroutines, a graphical user interface, and linking to external text, csv and SQL files. This book is perfect for anyone who wants to learn how to program with Python. In particular, students starting out in computer science and teachers who want to improve their confidence in Python will find here a set of ready-made challenges for classroom use.

    • Includes example code to help readers create their own programs
    • Concise explanations provide readers with the information they need while avoiding tedious detail
    • Possible answers at the end of each set of challenges provide immediate help where needed and suggest ways in which the problems may be solved
    Read more

    Customer reviews

    Not yet reviewed

    Be the first to review

    Review was not posted due to profanity


    , create a review

    (If you're not , sign out)

    Please enter the right captcha value
    Please enter a star rating.
    Your review must be a minimum of 12 words.

    How do you rate this item?


    Product details

    • Date Published: June 2019
    • format: Paperback
    • isbn: 9781108716833
    • dimensions: 276 x 219 x 9 mm
    • weight: 0.56kg
    • contains: 140 b/w illus. 10 tables
    • availability: Temporarily unavailable - available from December 2019
  • Table of Contents

    Downloading Python
    Some tips
    Part I. Learning Python: Challenges 1–11. The basics
    Challenges 12–19. If statements
    Challenges 20–26. Strings
    Challenges 27–34. Maths
    Challenges 35–44. For loop
    Challenges 45–51. While loop
    Challenges 52–59. Random
    Challenges 60–68. Turtle graphics
    Challenges 69–79. Tuples, lists and dictionaries
    Challenges 80–87. More string manipulation
    Challenges 88–95. Numeric arrays
    Challenges 96–103. 2D lists and dictionaries
    Challenges 105–110. Reading and writing to a text file
    Challenges 111–117. Reading and writing to a .csv File
    Challenges 118–123. Subprograms
    Challenges 124–132. Tkinter GUI
    Challenges 133–138. More Tkinter
    Challenges 139–145. SQLite
    Part II. Chunky Challenges:
    146 – Shift code
    147 – Mastermind
    148 – Passwords
    149 – Times tables (GUI)
    150 – Art gallery
    What next?

  • Author

    Nichola Lacey, Nichola Wilkin Ltd, Cambridge
    Nichola Lacey is Director of Nichola Wilkin Ltd. She is a trusted source for teaching resources, having sold thousands of resources to schools around the world. As one of the most popular authors on TES, Nichola enjoys an extremely high review rating with hundreds of thousands of downloads. She was a programmer before moving into corporate training and then retraining as a teacher, and she gained a unique skill set of programming and practical classroom experience after being promoted to head of computer science in a private boys' school.

Sign In

Please sign in to access your account


Not already registered? Create an account now. ×

Sorry, this resource is locked

Please register or sign in to request access. If you are having problems accessing these resources please email

Register Sign in
Please note that this file is password protected. You will be asked to input your password on the next screen.

» Proceed

You are now leaving the Cambridge University Press website. Your eBook purchase and download will be completed by our partner Please see the permission section of the catalogue page for details of the print & copy limits on our eBooks.

Continue ×

Continue ×

Continue ×

Find content that relates to you

Join us online

This site uses cookies to improve your experience. Read more Close

Are you sure you want to delete your account?

This cannot be undone.


Thank you for your feedback which will help us improve our service.

If you requested a response, we will make sure to get back to you shortly.

Please fill in the required fields in your feedback submission.