l = [
["KT Wiz", 90, 49, 5],
["Samsung Lions", 83, 58, 2],
["LG Twins", 78, 65, 2]
]
print("{0:>15} {1:>10} {2:>10} {3:>10}".format("Team Name", "Win", "Lose", "Tie"))
s = ''
for team in l:
for i in range(len(team)):
if (i == 0):
s += '{0:>15}'.format(team[i])
else:
s += '{0:>10}'.format(team[i])
s += '\n'
print(s)
To embed this project on your website, copy the following code and paste it into your website's HTML: