BIG

 

from itertools import product

def coin_toss_all_heads_and_tails(num_coins):
    outcomes = ['앞면', '뒷면']
    all_combinations = list(product(outcomes, repeat=num_coins))

    for combination in all_combinations:
        print(combination)

# 동전 개수
num_coins = 15

coin_toss_all_heads_and_tails(num_coins)
LIST