Writtng Codes For Loop On Python