def checkOverallRankPoints(): rankList = ['y','n'] done = False while done == False: checkRank = input('Would you like to view overall rank points? y/n').lower() if checkRank not in rankList: print('Sorry, that is not a valid choice, please try again') continue elif checkRank == 'y': print(sortLists.enterSorting(ranking.copyForSortOverallRank), '\n') done = True else: done = True
def checkPointsFromRound(): checkList = ['y','n'] done = False while done == False: checkRound = input('Would you like to see the leader board for the current round? y/n').lower() if checkRound not in checkList: print('Sorry, that is not a valid choice, please try again') continue elif checkRound == 'y': print('\nBase points are multiplied by win margin.\n') print(sortLists.enterSorting(ranking.copyForSortRankForRound), '\n') done = True else: done = True
def displayWinnings(gender): displayWinnings = [] #choose gender of file if gender == 'f': prizeFile = 'PRIZE_TOTAL_FEMALE.csv' elif gender == 'm': prizeFile = 'PRIZE_TOTAL_MALE.csv' #Read information from overall prize file with open(prizeFile, "r") as openFinal: prizeReader = csv.reader(openFinal, delimiter =',', quotechar='|' ) for players in prizeReader: displayWinnings.append(players) #Display print(sortLists.enterSorting(displayWinnings))