I have a question about Python coding

I held a LOL competition with my friends

A total of 25 people will participate, and for balance between teams, we will score points according to their skills and each team will have the same total score

If we form a team like this, I’d like to see the number of possible teams in programming

First

from itertools import product

import os

players =

Caladia 5 Chat 4 Cuisine Meal 4 Sumbad Helmi 25 Double Dragon Boli Bear 25

Plain road 6 sphincter tightening 55 Baby Angel 4 Drinking 5 Cups 4 Romanticism 35

Soft Strap 55 Thin Tanbo 4 Luge Jjang 4 Tutu or 4 Croline 4

Lee Seung-joon 7 Parrotville 7 Khe 45 Early 35 Woo Binjang 35

Kerrymung 25 Roll Devil 15 Sunha 15 Chuniklas 15 Half Manju 0

team_combinations = listproductplayers5 players510 players1015 players1520 players20

team_strs = joinf{player0}{player1}점 for player in team

for team in team_combinations if sumplayer1 for player in team == 19

desktop_path = ospathjoinospathexpanduser~ desktop

file_path = ospathjoindesktop_path 경우의 수들txt

with openfile_path w as file

for i team_str in enumerateteam_strs start=1

filewritef팀 {i} {team_str}\n

I entered this code into Python

Come out like this. When my friend who used to program had a contest

I showed you the number of cases where all the teams were put together

Can anyone modify the code to show the number of cases in this way

Even if I ask Chatgtp, they don’t tell me that way, they mix the teams regardless of the line, or they tell me one combination, or they tell me a code with an error. If there are people with skills, please help me crying

Leave a Comment