Taking Notes Let's understand something in detail: Assignment to variables A variable must be created - This requires type to be determined - Historical language precedent - C++11 auto - Historical C and Ada Assignment direction Ok, let's talk about lab1start.py Calculations can be done a line at a time. How many elephants would it take to drink a swimming pool? Input in this case is by changing variables Launching the elephants Expressions in Python: Arithmatic: + - * / % ** Comparison: == <= >= < > Logic: and or not Assignment doesn't act like an operator in Python Order of operations and parenthesis Use parenthesis if you need them or think you do - But don't make a mess Example: Do the previous examples on one line each Variables can store multiple types, including logic values Logic values are useful for conditionals, like "if" statements "if": Example: Warn if you don't have enough pool for enough elephants "else" and "elif": Used to choose a few options Exactly one branch is chosen Block is deliminated by tab characters or spaces "while": Keep on repeating while something is true Like an "if" statement, but repeats Would "else" make sense with "while"?