The Python REPL and More

Creating a Python file is pretty easy. Open a new file in your favorite text editor, put some Python code in it, and save it with a .py extension. Done! “Done” means “but wait, there’s more!” RIP Let’s try creating a simple Python file. Save the following code as two.py: 1 + 1 Since we’re working […]

Read More

Propositional Logic

You likely learned about the distributive property in your middle school algebra class. The distributive rule says that a term multiplied by two or more terms in parentheses is applied to each of those terms individually. For instance: 2(3 + 4) = (2)3 + (2)4 = 6 + 8 = 14. In propositional logic, the […]

Read More