Project Description

Introductory Programming in Python

In this course the student will start learning to code in Python.  Tools and concepts that are necessary for the successful completion of all subsequent courses will be discussed.  The student will learn about computer architecture, variables, data structures, functions, looping and flow of control.   In this course the student will start writing programs.  The course will heavily utilize the Jupyter Notebook.  Class materials and code files created or shared with students will be available on GitHub.  Homework will be assigned in most classes.   Each student is required to have a basic laptop or chromebook (recommendations can be given upon request).

Exercise #1: Pythagorean Triples

For this exercise we are going use python to solve for Pythagorean triples. For those that are not familiar, a little background.
In a right triangle there exists a strict relationship between the 3 sides. A right triangle with sides a, b and hypoteneuse c maintains this relationship:

This picture describes it. Pythagorean Theorem

A Pythagorean triple consists of three positive integers a, b, and c, such that a2+b2=c2


. Such a triple is commonly written (a, b, c), and a well-known example is (3, 4, 5).

Add a code cell for each triple below and solve for the missing side using the Pythagorean theorem.

  • (a,b,c)
  • (5, ,13)
  • (8,15, )
  • ( ,21,29)
  • (12,35, )
  • ( ,40,41)

Following this link will take to you to our GitHub page where you can view our syllabus.

If you have any questions contact us.