java and python coding bat exercises, debugging solutions