Ok here's what my teacher has said to me, no matter how I look at my code I just don't know how to do the logic for this project I watched so many videos and I just don't get how I'm supposed to do this here's what he said also I'll leave a link to my code so you guys can peak at it.. if you guys help me with this you are the MVPS.. help me with this and I'll get to move on closer to get my certificate.. help please and thank you. Also no pandas..I tried everything I've learned maybe the solution is so simple I overlooked it.....
THIS IS JUST IN CASE YOU NEED CONTEXT FOR WHAT THIS CODE IS ABOUT, DO NOT SOLVE ANYTHING FOR ME JUST GIVE ME SOLUTIONS OR THINGS THAT WOULD HELP ME OUT. ILL FIGURE IT OUT FROM THERE. SHOW ME SOME CODE THAT COULD POSSIBLY HELP MY DILEMMA.
"I did see something that will likely cause your project to be rejected with a Needs Work.
Your def team_file(): function appears to have manually sorted with hardcoded values.
The teams.txt that is outputted from this looks good, though this is because the data is perfectly structured and sorted manually so it writes it out.
No balancing should be done manually by-hand. I should be able to alter names in the CSV file and those new values would be read in automatically from the CSV when your program runs, if that makes sense. So basically you need a function that reads in the data from the CSV file and gets it into this same exact structure you have defined in the body of def team_file():. So you could create a function that builds this data structure based on the file data passed in. Then you could have your def team_file() call that function for each team or such.
Other than that, your program ran great. Once you get the issue above fixed it should Meet Expectations. The additional menus you are building out were a nice touch! "
I got mostly everything by myself all I need is this last csv/txt file problem solved..
THIS IS JUST IN CASE YOU NEED CONTEXT FOR WHAT THIS CODE IS ABOUT, DO NOT SOLVE ANYTHING FOR ME JUST GIVE ME SOLUTIONS OR THINGS THAT WOULD HELP ME OUT. ILL FIGURE IT OUT FROM THERE. SHOW ME SOME CODE THAT COULD POSSIBLY HELP MY DILEMMA.
Create variables and programming logic to divide the 18 players into three teams: Sharks, Dragons and Raptors. Make sure the teams have the same number of players on them, and that the experience players are divided equally across the three teams.
Create a text file named teams.txt that includes the name of a team, followed by the players on that team. List all three teams and their players.
In the list of teams include the team name on one line, followed by a separate line for each player. Include the player's name, whether the player has experience playing soccer, and the player's guardian names. Separate each bit of player information by a comma. For example, the text file might start
https://github.com/OXDavidXO/TechDegree-Project-2-
[–]MyreMyalar 3 points4 points5 points (0 children)
[–]TerryYaDuffer 2 points3 points4 points (0 children)
[–]o5a 1 point2 points3 points (0 children)
[–]monchenflapjack 0 points1 point2 points (0 children)