When a line holds several operators, Python needs a rule for which to do first. Precedence says which operator wins, and associativity says what happens between two of the same rank. Knowing both, and using parentheses when in doubt, prevents a whole class of wrong answers.
More lessons in Complete Python Programming