Python code I made to expedite my Physics 1 homework.