Professional Documents
Culture Documents
Lists
A list is a collection of items in a particular order
It is represented by [], items are separated using a (,)
IF STATEMENTS
If statements allow u to check a certain condition
And act accordingly
IF STATEMENTS
Simple statements : perform only one function or test
If-else statements : this allows u to perform one test and if that fails the else
Block executes another test if the first one fails
If-elif-else chain : this allows it to run the tests till one passes
DICTIONARIES
This is a superset of a list that can pair lage amounts of data
It can also contain a lot of info