Python includes exercises 22
Title: Two table tennis team to compete, each of the three. A team of a, b, c three, B team for the x, y, z three. I have decided to contest ballot list. Asking someone to the list of game players. He does not say a ratio x, c said he did not and x, z ratio, programmed to identify a list of three teams racer.
Source Code:
#!/usr/bin/python # -*- coding: UTF-8 -*- for i in range(ord('x'),ord('z') + 1): for j in range(ord('x'),ord('z') + 1): if i != j: for k in range(ord('x'),ord('z') + 1): if (i != k) and (j != k): if (i != ord('x')) and (k != ord('x')) and (k != ord('z')): print 'order is a -- %s\t b -- %s\tc--%s' % (chr(i),chr(j),chr(k))
The above example output is:
order is a -- z b -- x c--y