teams = raw_input("Enter number of teams : ") teams = int(teams) teams = (teams/2)*2 if teams < 2 : teams = 2 pattern = [x for x in range(1, teams+1)] print print '"Round Robin" draw for ', teams, ' teams ', pattern print for round in range(teams-1): print "Round ", round print pattern[:teams/2] print (pattern[teams/2:])[::-1] pattern = pattern[:1]+pattern[-1:]+pattern[1:-1] print