Hackerrank Answers For Python Loop