Super short test review Variables: operatprs with BEDMAS, adding strings and characters etc CASTING to convert variable types for operators to work. ex int("1000") = 1000 Boolean Math: AND, OR, NOT If Blocks Variables Examples: name = "Guzy" score = 5 print(name + str(score)) newScore = int(input()) Boolean Math Operators AND, OR, NOT Example T AND F OR F AND NOT(T) = T AND F OR F AND F = F OR F AND F = F OR F = F Order: Brackets, NOT, AND, OR and you should be fine, just show steps If Blocks score = 7 name = "Guzy" if score == 7 and name != "Guzy": print("Helloe not Guzy, you got a 7") elif score > 7 or name == "Bob Ross": print("You a seven, or a happy little accident") elif score < 7: if name == "Birb": print("Got a bum score, but is nesting in the ifs!" elif name == "Cat": print("Cats always nest?") else: print("Not sure whats happening, but every other condition is F") Just sub in values for the IF conditions. The first one to evaluate to TRUE will run the code in that block. And if there are ifs inside of an if, just run it like any other code, no worries. Example Questions Variables -Math & String operators -Casting -Now what variables are Examples name + str(score) name = "Steve" score = 7 print(name + str(score) " rowds") What is the final output? ==> Steve7 rowds Boolean Math -AND, OR, NOT Examples T or F and (T and F or F) = T or F and (F or F) = T or F and F = T or F = T Not(T or F and F or T) or F = Not(T or F or T) or F = Not(T) or F = F or F = F F and (T and Not(T) and T and (F or T)) and T = F and (T and Not(T) and T and T) and T = F and (T and F and T and T) and T = F and (F) and T = F If Blocks salt = 5 luck = 80 testDay = True if testDay: if salt > 4 and luck > 8: print("Schools cancelled") elif salt > 20: print("schools cancelled because pirate majic") if luck > 90: print("ultimate nirvana awaits") print("easy time") else: if (luck > 3 and salt > 2) or salt > 30: print("salty cancelled") else: print("school is very OPEN") ANSWER: Schools cancelled Easy Time