for row in range(1,6): for column in range(1,103): print "grecord( ai, \"$(PREF)TAGM:bias:{0}:{1}:v_set\" )".format(row, column) + '{}' print "grecord( ai, \"$(PREF)TAGM:bias:{0}:{1}:v_set:rb\" )".format(row, column) + '{}' for board in range(1,18): for item in range(1,5): print "grecord( ai, \"$(PREF)TAGM:cb:{0}:power:{1}\" )".format(board, item) + '{}' print "grecord( ai, \"$(PREF)TAGM:cb:{0}:status:{1}\" )".format(board, item) + '{}' print "grecord( ai, \"$(PREF)TAGM:cb:{0}:temp:{1}\" )".format(board, item) + '{}' print