INTRODUCTION TO PYTHON Campus Resource Library | Open study notes Variables bind names to values: count = 3 Lists store ordered items: scores = [72, 85, 91] Loop over items: for score in scores: print(score) Functions organize behavior: def mean(values): if not values: raise ValueError("values must not be empty") return sum(values) / len(values) Use with open(path, encoding="utf-8") as f: to read text files. Use descriptive names and small functions. Test normal cases, boundary cases, and invalid inputs. Never store passwords or private keys in shared source files.