Code challenge written in Pyton