Create Homework2B.python

Homework page 2 section B