the following codes are answers to coding bat python problems on how I tackled them. Please use only for review and don't just copy-paste the codes.