Professional Documents
Culture Documents
Lesson 1
Software is a computer program that does a specific task.
Programming tools is software that allows us to write and run computer programs.
Application software is (are) software used for a specific task.
Software engineering is a branch of computer science that applies engineering principles to
produce high-quality software
Lesson 2
A programming language is made up of a set of instructions that can be used to tell the
computer what to do.
Python is a high-level programming language that we can use to write programs.
Assembly Language is an example of a low-level programming language.
A program’s interface made up of the following:
The commands that the user can use to communicate with the program
The program’s windows
The program’s menus
Lesson 3
When we type 10 + 3 at the Python Shell’s prompt, then press Enter, the answer 13 will
appear on the next line
What happens when the following instruction is written on the Python Shell’s prompt,
and the Enter key is pressed?
print("Computer Science")
The phrase Computer Science will appear on the next line.
Lesson 4
The Python Editor is used to write a program with many instructions that we can save and
open later.
We can save a program in the Python editor from the File menu.
In the Python Editor, we can run a program from the Run menu or by clicking on the F5
key on the keyboard.
Lesson 6
In the Python Editor, we can run a program from the Run menu.
The "int" data type holds integer values and the "float" data type holds decimal values.
What will be displayed on the screen when we run the code below?
A = 18
A = 'SABIS'
A = 'School'
Print(A)
Answer: School
Write a statement that ask the user to enter a number, then store that number in a variable
called VALUE.
Answer: VALUE = input("Please enter a number")
Lesson 7
Lesson 8
Lesson 11
Conditional statements check a condition and choose which set of instructions to execute
accordingly.
The if statement and the if-else statement are two conditional statements
What is the output of the code below?
A = 40
B = 70
C = 100
if A < C:
B = 10
Print B
Answer: 10
Lesson 12
The if-else statement is used to execute a set of instructions if the condition is True, and
another set if the condition is False.
What will the value of A be after the following code is executed?
A = 100
B = 83
C = 93
if A <= B:
A = 20
else:
A = 30
Answer: 30