What is a variable
A location in memory used to store a value (can change)
What is a constant
A location in memory used to store a value that cannot change
When is == used
To compare values ( check is value is in a variable)
When is = used
To set a value for a variable
What are the Boolean operators
And or not true false
What is a sequence
Lines of code are executed one after the other in the order they occur
What is selection
A condition is used to decide whether code should be executed
What is iteration
Code is executed repeatedly for a set number of times or while I condition is met
What is mod or %
Remainder
What is div or //
Whole number division
What is the code for length
Len()
What is the difference between + and ,
, leaves a space and + does not
How to convert ascii to a number
Chr() - takes number returns letter
Ord() - takes letter returns number
When using substrings what number does the string start at
0
Is the second number in substrings inclusive
No
How to code substings
Variable[1:4]
How to make somthing upper case or lower case
Variable.upper()
Variable.lower()
How to do random in python
Import random
Num = random.randint(0,100)
How to select a specific value in a list
Variable[3]
What is a 2d array
A collection of data of the same data type under one identifier, uses two index numbers, represented in a table
What are the three parts of sql
Select from where