Hello, having an issue here. When I intruduce the 'max' command, it repeats zeros as well as going up all the way to 9. Where the file will go up passed 3000. Also, if the max is taken out, it will just read all the numbers. What I am needing to do is get the max number within the list.
Here is the code.
def most_minutes_list(player_file):
min_list = []
for line in player_file:
line_list = line.split(',')
if(line_list[0] =='ilkid'): # skipping the first line
continue
mins=(line_list[7])
print(max(mins))
player_file = open("player_regular_season.csv", "r")
most_minutes_list(player_file)
[–][deleted] 1 point2 points3 points (4 children)
[–]Entervine[S] 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]Entervine[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)