1 minute read
Sequence and strings
How to use this book
Throughout this book, you will notice lots of different features that will help your learning. These are explained below.
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
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.
Pseudocode and Code snippets
Python code is presented with syntax highlighting in the same way that IDEs present different programming terms in different colours. 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')
Code snippet 7.3
Pseudocode is shown in text like this:
INPUT number1 INPUT number2 answer number1 + number2 OUTPUT answer
Code snippet 3.1
Further Information: This feature highlights the advanced aspects in this book that go beyond the immediate scope of the syllabuses. KEY WORDS
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.