Python Programming Flashcards
(8 cards)
1
Q
What is programming?
A
Setting instructions that a computer has to follow.
2
Q
What is an algorithm?
A
A set of instructions.
3
Q
What is the model MOST computer programs follow?
A
IPO
Input
Process
Output
4
Q
What is a variable?
A
A ‘cardboard box’ that can store data.
5
Q
What can be stored in a variable?
A
Integers - whole numbers
Floats - decimal numbers
Strings - text
6
Q
What do we FIRST need to type in to a program in order to perform calculations?
A
import.math
7
Q
What is a loop?
A
A way of repeating code without writing it out each time.
8
Q
What is turtle used for?
A
Drawing graphics.