I just wanted to print all the team pairs which played in world cup 2019, I have made a simple program for this but it contains a little bit of problem.The problem is that, a pair get repeated 1 time (by printing vice-versa) after it has already been print.Like this --
INDIA AUSTRALIA ----after some other prints of pair---- AUSTRALIA INDIA
THERE'S ALSO A LIST INCLUDED IN THIS PROGRAM BUT THIS WEBSITE IS NOT SHOWING THAT
team = ["INDIA", "AUSTRALIA", "ENGLAND", "PAKISTAN", "SOUTH AFRICA", "AFGHANISTAN", "WEST INDIES", "SRI LANKA", "NEW ZEALAND", "BANGLADESH"]
team1 = ["INDIA", "AUSTRALIA", "ENGLAND", "PAKISTAN", "SOUTH AFRICA", "AFGHANISTAN", "WEST INDIES", "SRI LANKA", "NEW ZEALAND", "BANGLADESH"]
print(team)
for x in team:
for y in team1:
if x == y:
continue
print(x, y)