Skip to content
Snippets Groups Projects
7.py 145 B
Newer Older
hacker717's avatar
hacker717 committed
from itertools import combinations

people = [input() for _ in range(int(input()))]

for a, b in combinations(people, 2):
    print(f"{a} - {b}")