Just wondering if someone could spot what i was doing wrong, i was under the impression that the following code would find the max number and the index of the max number. here is the code im using below.

```
def select_winner():
    print('The game scores are:')
    for i in range (4):
        print(Players[i], ' = ', score[i])
    winner = max(enumerate(score))
    print('----------------')
    print()
    print('The Winner is ', Players[winner[0]], ' with ', str(winner[1]),' 
    points!')
    print(winner)

```

The output:

```
#The game scores are:
#Jarrah  =  86
#Reza  =  121
#Marge  =  72
#Homer  =  91
#----------------
#The Winner is  Homer  with  91  points!
#(3, 91)

```

max should choose the highest value right? and enumerate should choose the value and its index if im not mistaken and when i print them together i should get the highest value and wheres its located in the list. well atleast thats what im trying to do. the index for the score that was chosen as the highest should share the same index with the player who got that score as well as thats how they were listed. 

any help would be great
thanks

Update:

```
def select_winner():
    print('The game scores are:')
    for i in range (4):
        print(Players[i], ' = ', score[i])
    winner =(max(score))
    print('----------------')
    print()
    print('The Winner is '+ Players[winner[0]]+ ' with '+ str(winner[1])+ ' 
    points!')
    print(winner)

```

output: 

```
#The game scores are:
#Jarrah  =  91
#Baldwin  =  73
#Kepa  =  112
#Long  =  106
#----------------
#in select_winner
#print('The Winner is '+ Players[winner[0]]+ ' with '+ str(winner[1])+ ' 
#points!')
#TypeError: 'int' object is not subscriptable

```

anyone know of a work around, and does the max() on its own pull the index of where the max number is located? if not, is there a way to do that?

Fixed!:

```
def select_winner():
    k=0
    print('The game scores are:')
    for i in range (4):
    print(Players[i], ' = ', score[i])
    winner2=(score.index(max(score)))
    winner=str(max(score))
    print('----------------')
    print()
    print('The Winner is '+ Players[winner2]+ ' with '+ winner + ' points!')

```