Create ex3.py

Who doesn't like math?