Informatics — Grade 9
Programming in Python: variables, conditions and loops, lists, strings, functions, modules and files.
- 11 topics
- 4 chapters
- 16 min
Topics
Topics are grouped into chapters and listed in reading order.
5 topics
- 1
Your First Python Program
Python is an easy-to-learn and widely used programming language. We learn to print text, read input from the user and write comments, and then write our first program.
Chapter 1. Python Basics1 min
- 2
Variables and Data Types
A variable stores data under a name. We study assignment, naming rules, the main data types and operations on numbers, and learn to turn entered text into a number.
Chapter 1. Python Basics2 min
- 3
The if and else Statements
A program needs the conditional statement to make decisions. We study comparison operators, if, else, elif and logical operators, and write programs that work with age and scores.
Chapter 1. Python Basics2 min
- 4
The for and while Loops
A loop repeats the same action many times. We study the for and while loops in Python, the range() function, leaving a loop early and avoiding endless loops.
Chapter 1. Python Basics2 min
- 5
Logical Expressions: and, or, not
Comparison operations produce True or False. With and, or and not we combine several conditions and write programs that make complex decisions.
Chapter 1. Python Basics2 min