from itertools import combinations
school_subjects = ["math", "science", "history", "geography", "language arts", "Spanish"]
num_per_combos = 3
combos = list(combinations(school_subjects, num_per_combos))
for lists in combos:
for combo in lists:
print(combo + " ")
print("
")