Cambridge University Press - Coding Club Python Basics Level 1

R170.00  Inc VAT

The programming language Python 3 is used to introduce the principles of programming. In this book you learn how to write simple programs that include My8Ball, a number guessing game and a small graphical application called MyEtchASketch.

More importantly, by the end of the book, you should be able to write your own short programs and be able to fully customise both the look and how the various programs you have made to your own liking.

Chapter 1

Ch.1 - Python, IDLE & Your First Program:
In this Chapter you are going to:

   >>> Meet the programming language you are going to learn about.
   >>> Meet IDLE which will help organise and run your code easily.
   >>> Check that your computer is set up correctly.
   >>> Write and run your first program.

Chapter1.pdf

Chapter 2

Ch.2 - Some text, some maths & going loopy:
In this Chapter you will be able to:

   >>> Learn how to do some more with texts.
   >>> Get Python to do some maths for you.
   >>> Learn about how loops work.
   >>> Learn lots of useful operators.

Chapter 3

Ch.3 - Readable code and My8Ball Game:
In this Chapter you will be able to:

   >>> Write and save a Python file using Script Mode.
   >>> Learn how to write clear readable code.
   >>> Run a Python file.
   >>> Learn about how to get user input.
   >>> Learn about if and else clauses.
   >>> Write a short game called MyMagic8Ball.


Here is a movie of this chapter's project: my8ball.py

Chapter 4

Ch.4 - Functions:
In this Chapter you will be able to:

   >>> Learn about functions .
   >>> Write your own functions.
   >>> Create a number guessing game.



Here is a movie of this chapter's project: myNumber.py

Chapter 5

Ch.5 - MyEtchASketch:
In this Chapter you will be able to:

   >>> Learn how to use the tkinter library.
   >>> Make your own Etch A Sketch game.
   >>> Learn how to put an application in its own window.
   >>> Learn how to attach functions to keyboard presses.



Here is a movie of this chapter's project: myEtchaSketch.py
Here is a movie of a two player version: ourEtchaSketch.py

Answers to Challenges

Click below to find the answers to the puzzles and challenges in Python Basics.

Answers

  • Availability: 1
  • Model: Python Basics Level 1
  • Manufacturer: Cambridge University Press