Looking at the code below, show me an example in Python of a function that adds a new player to the players list without errors. 
```
players = []
bob = {'name': 'Bob', 'availability': ['Monday', 'Tuesday', 'Thursday']}
```
system
neeche die gaye code ko dekhte hue, mujhe ek fnction ke paythan main ek udhaaharan dikhaaen jo bina trutiyon ke khilaadiyon kii suchi main ek nayaa khilaadi jodta he.
`` `
khilaadi = []
bob = {'naam': 'bob', 'uplabdhta': ['somvaar', 'mangalvaar', 'guuruuvaar']}
`` `
user
yahaan ek paythan fnction he jo truti jaanch ke saath khilaadiyon kii suchi main ek nayaa khilaadi jodta he.

`` `paythan
def add_player (khilaadi, player_list):
    if (khilaadi main 'naam' or khilaadi main 'uplabdhta'):
        player_list.append (khilaadi)
`` `

fnction add_player 2 tark sweekaar karata he:
1. khilaadi - khilaadi vivaran ke saath ek shabdkosh
2. Player_list - ek suchi jo khilaadiyon ko rakhti he

fnction ke andar, yah jaanchataa he ki kya kunjee 'naam' or 'uplabdhta' maujuud he.yadi chaabi maujuud he, to yah khilaadi ko player_list main jodta he.fnction ke liye ek kol is tarah dikhegaa: `add_player (bob, khilaadi)`
assistant
<|system|>
</s>
<|user|>
neeche die gaye code ko dekhte hue, mujhe ek fnction ke paythan main ek udhaaharan dikhaaen jo bina trutiyon ke khilaadiyon kii suchi main ek nayaa khilaadi jodta he.
`` `
khilaadi = []
bob = {'naam': 'bob', 'uplabdhta': ['somvaar', 'mangalvaar', 'guuruuvaar']}
`` `</s>
<|assistant|>
yahaan ek paythan fnction he jo truti jaanch ke saath khilaadiyon kii suchi main ek nayaa khilaadi jodta he.

`` `paythan
def add_player (khilaadi, player_list):
    if (khilaadi main 'naam' or khilaadi main 'uplabdhta'):
        player_list.append (khilaadi)
`` `

fnction add_player 2 tark sweekaar karata he:
1. khilaadi - khilaadi vivaran ke saath ek shabdkosh
2. Player_list - ek suchi jo khilaadiyon ko rakhti he

fnction ke andar, yah jaanchataa he ki kya kunjee 'naam' or 'uplabdhta' maujuud he.yadi chaabi maujuud he, to yah khilaadi ko player_list main jodta he.fnction ke liye ek kol is tarah dikhegaa: `add_player (bob, khilaadi)`</s>
