Jacob Nixon Python Definitions
Code: This mean computer language.
String: A series of characters. They can contain numbers, letters or symbols such
as a colon.
Integer: Is a whole number. Not a number that contains a decimal point or written
as a fraction.
Syntax: The rules that determine how a programme will be structured so that it
can work properly.
Error: Something has gone wrong.
Program: A set of instructions that a computer follows to complete a task.
Print: It displays what ever you type into the brackets with speech marks (“hello”)
Comment: It is where you start with # and will not show up when you run the
code. It is like a private message.
Debug: to look for and correct errors.
If & Else : If and Else are powerful features where you can create different
outcomes IF certain criteria or numbers are met. Else the programme will do
something ELSE.
For example:
If 10 = 10 then print (“Hello”)
Else print (“Good morning”)
Indent: To make instructions visually clearer – python ignores the gap.
Colon: This is a colon : It indicates the start of a line of code.
Header : A header block are just comments at the top of the code. It doesn't print
when the program runs.
Syntax error
Computers follow instructions EXACTLY!
Computers are not good at dealing with nearly, almost, not quite.
Syntax describes the rules that must be used when commands are written.
If answer ==4
This means ‘equal’ to, as in “is it equal to?”