What is an Algorithm?
An Algorithm is a set of of instructions followed in sequence to perform a specific task.
What is a Variable?
A Variable is a named storage that can be assigned value.
What are some examples of when you might use a variable in a program?
Some examples of when you might use a variable in a program are when you want to:
Store your progress in a game.
Store the results of the users tests.
What are the four main naming conventions that should be followed in Python.
The four main naming conventions that should be followed in Python are that:
The name of a variable should not start with a number.
12name
The name of a variable should not start with a special character.
e.g. $name
The name of a variable should not have a space in between.
e.g. First name
However this variable name is allowed:
e.g. First_name
The name of a variable shouldn’t have reserved keywords
e.g. input
How can Comments be added to Python code?
Comments can be added to Python code using the # at the start of a line.