How do I get the following code to work so the functions are executed on the player scores separately and allow them to accumulate?(btw, I'm very new to python so don't judge)
player_1_score=0
player_2_score=0
def six(score):
print('you rolled a 6')
print('''
-------
| o o |
| o o |
| o o |
------- ''')
score+=6
def five(score):
print('you rolled a 5')
print('''
-------
| o o |
| o |
| o o |
------- ''')
score+=5
#for player1
five(player_1_score)
six(player_1_score)
print('p1 score:',int(player_1_score))
#for player2
five(player_2_score)
six(player_2_score)
print('p2 score:',int(player_1_score))
the code should display: 11 for player scores when run but displays 0 instead.