This book teaches basic algebra by having the student write short, simple computer programs (or "code"), to investigate topics typically found in an introductory algebra class. Topics include symbolic manipulation, factoring, problem solving, graphing, equation solving, and quadratic equations, all presented with the backdrop of writing simple code. The student will be pleased with the motivation and insights coding brings to learning algebra.