there are 8 teams in a certain league and each team plays each of the other teams exactly once . if each game is played by 2 teams , what is the total number of games played ?
n0 = 8.0
n1 = 2.0
t0 = n0 - 1.0
t1 = n0 * t0
answer = t1 / 2.0
print(answer)