Python Loop Some Coding Question For Ibm