Cambridge IGCSE & O Level Computer Science Programming Book for Python Sample

Page 10

We are working with Cambridge Assessment International Education towards endorsement of this title. Any references or material related to answers, grades, papers or examinations are based on the opinion of the author(s). CAMBRIDGE IGCSE™ & O LEVEL COMPUTER SCIENCE: PROGRAMMING BOOK

How to use this book Throughout this book, you will notice lots of different features that will help your learning. These are explained below.

LE

LEARNING INTENTIONS These set the scene for each chapter, help with navigation through the Python programming process and indicate the important concepts in each topic.

SKILLS FOCUS

KEY WORDS

This feature supports your computational thinking, mathematical and programming skills. They include useful explanations, step-by-step examples and questions for you to try out yourselves.

P

Pseudocode and Code snippets

Python code is presented with syntax highlighting in the same way that IDEs present different programming terms in different colours.

M

number1 = int(input('Enter first number: ')) number2 = int(input('Enter second number: ')) if number2 == number1: print('Same') else: if number2 > number1: print('Second') else: print('First')

A

Code snippet 7.3

Pseudocode is shown in text like this:

S

INPUT number1 INPUT number2 answer  number1 + number2 OUTPUT answer

Key vocabulary is highlighted in the text when it is first introduced. Definitions are then given in the margin, which explain the meanings of these words and phrases. You will also find definitions of these words in the glossary at the back of this book.

TIPS These are short suggestions to remind you about important learning points. For example, a tip to help clear up misunderstandings between pseudocode and Python.

Code snippet 3.1

Further Information: This feature highlights the advanced aspects in this book that go beyond the immediate scope of the syllabuses.

x Original material © Cambridge University Press 2021. This material is not final and is subject to further changes prior to publication.


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.