r/pythonhelp • u/Puzzled_Farmer_63 • May 02 '21
HOMEWORK creating a game help?
For my homework I'm tasked with creating a fantasy league,
The functionality required from this project is:
- Allow the user to choose an unlimited number of teams
- Allow the user to choose players for those teams
- Allow the user to choose an unlimited number of games
- Report the team scores after those games have been played
This is my code so far:
import random
def main():
print("You need to call your functions here from above")
# func_name()
if __name__ == '__main__':
main()
team_size = {}
while True:
team_name = input('enter a team name\n>')
team_size.setdefault(team_name,0)I have two questions. Does the code above hit the first three tick marks? Can someone give me a hint on how to report scores?
Any help is appreciated!!!!
2
Upvotes
1
u/[deleted] May 02 '21
[removed] — view removed comment